Re: [PHP4BETA] call_user_function() in PHP4
| From: | Steve Langasek | Date: | Sat, 29 Apr 2000 01:09:23 +0000 |
| Subject: | Re: [PHP4BETA] call_user_function() in PHP4 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14158@lists.php.net to get a copy of this message | ||
On Fri, 28 Apr 2000, Zeev Suraski wrote:
> > Oh, in addition the args array needs to be declared as:
> > zval **args[2]
> > because in PHP 4 call_user_function() needs an array of pointers to
> > pointers to zval's. Accordingly, the whole functions needs to be
> > rewritten to respect that.
> Actually that's not true, the semantics of call_user_function() hasn't
> changed. call_user_function_Ex() was introduced to implement a high
> performance API.
Whatever the case, by modifying my code to use call_user_function_ex() and the
zend_hash functions instead of the old php3 functions, I was able to get rid
of the problem.
I still don't understand why the original code didn't work under PHP 4;
apparently, there's a subtle incompatibility somewhere in the Zend code.
Perhaps I was doing something wrong before, and PHP3 was just being more
forgiving. :)
But thank you both for your help. Everything seems to be working well now.
Out of curiosity, would there be interest in including php_pam in PHP 4?
Steve Langasek
postmodern programmer