Re: [PHP4BETA] call_user_function() in PHP4

From: Date: Fri, 28 Apr 2000 16:52:48 +0000
Subject: Re: [PHP4BETA] call_user_function() in PHP4
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14152@lists.php.net to get a copy of this message
On Fri, 28 Apr 2000, Steve Langasek wrote: > I've seen many examples in the PHP4 code where reference counts are used on > pvals (or rather zvals), and I've tried several ways to increment the refcount > so that the array isn't freed, but with no success. Nor can I find any > examples in the PHP4 code where call_user_function() is used with a function > that returns information in this way. > > Does anybody know what I'm doing wrong? Am I simply better off rewriting the > code so that all the information I need is returned in a single array as the > user function's return value? Take a look at php_array_walk() function in ext/standard/array.c. It sets up the arguments and calls the user function. http://lxr.php.net/source/php4/ext/standard/array.c#874 -Andrei * Who is Ray and why would we want to selectively trace him? *

« previous php.version4 (#14152) next »