On Fri, 2009-01-02 at 16:55 +0100, Derick Rethans wrote:
> Hello,
> 
> I've been running into a strange segfault with PHP 5.2.x (it works in 
> PHP 5.3) when using call_user_func() recursively. I can not find out 
> what causes it, but I did manage to have a simple test case. For the 
> test to crash, you either need a debug build of PHP, or valgrind + 
> USE_ZEND_ALLOC=0. You need run the script from within the "test" 
> directory as it assumes file system layout. 

I didn't test it as I have no 5.2 right now at hand on this box but I
think call_user_func messes with references in parameters to the called
function. In 5.3 this is fixed by zend_parse_parameters. I saw some code
(Serendipity's way of using Smarty) break with 5.3 since reference
handling changed there, didn't investigate but 5.3 seemed to be correct
on first sight.

Not sure if that's enough of an pointer to help debugging that issue...

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to