[PHP-DEV] Re: Symlinks in / don't work

2012-01-29 Thread Dmitry Stogov
Hi Rasmus, I've reproduced it and will take a deeper look a bit later today. Thanks. Dmitry. On 01/29/2012 03:06 AM, Rasmus Lerdorf wrote: Hey Dmitry, could you take a look at this one. I think this is mostly your code and I am a bit lost in the path manipulation that is going on here. This is

[PHP-DEV] Re: One more crash in PHP 5.4

2012-01-29 Thread Dmitry Stogov
Hi, On 01/30/2012 03:52 AM, Stas Malyshev wrote: Hi! in zend_vm_execute.h:701 PHP free's the function struct in case of ZEND_OVERLOADED_FUNCTION. the problem is that in PHP 5.4, the opline calling the function hast a pointer to the very same struct in it's cache_slot. when this opcode is calle

Re: [PHP-DEV] ReflectionFile missing

2012-01-29 Thread Ryan McCue
Ryan McCue wrote: > For some purposes, you need to be able to reflect files and classes > without loading them, which I think is a huge gap in the Reflection API. > That said, a proper ReflectionFile would be welcome, even if it did load > the file. Forgot to mention: it is also, as far as I know,

Re: [PHP-DEV] ReflectionFile missing

2012-01-29 Thread Ryan McCue
Johannes Schlüter wrote: > PS. Mind that the example you've given even works on files not included > by parsing files, whereas internal reflection provides information what > actually is available from engine point of view ... The original reason I wrote that class was for a documentation tool, so

Re: [PHP-DEV] ReflectionFile missing

2012-01-29 Thread Johannes Schlüter
Hi, On Sun, 2012-01-29 at 18:51 -0500, Rasmus Schultz wrote: > I realized the other day that ReflectionFile is missing from the Reflection > API. As is ReflectionNamespace and some others one might think about. In the end it boils down to the fact that we don't have structures internally represe

[PHP-DEV] Re: One more crash in PHP 5.4

2012-01-29 Thread Stas Malyshev
Hi! in zend_vm_execute.h:701 PHP free's the function struct in case of ZEND_OVERLOADED_FUNCTION. the problem is that in PHP 5.4, the opline calling the function hast a pointer to the very same struct in it's cache_slot. when this opcode is called againg, the cache is used and it crashes. How t

[PHP-DEV] ReflectionFile missing

2012-01-29 Thread Rasmus Schultz
Dear List, I realized the other day that ReflectionFile is missing from the Reflection API. A search for "ReflectionFile" on Google will reveal a number of implementations of classes with exactly that name, which suggests users are missing this - for example: https://github.com/rmccue/Reflection

[PHP-DEV] One more crash in PHP 5.4

2012-01-29 Thread yoram bar haim
in zend_vm_execute.h:701 PHP free's the function struct in case of ZEND_OVERLOADED_FUNCTION. the problem is that in PHP 5.4, the opline calling the function hast a pointer to the very same struct in it's cache_slot. when this opcode is called againg, the cache is used and it crashes. my suggest