Re: 回复: [PHP-DEV] How should I call a PHP function

From: Date: Mon, 18 Aug 2014 10:14:55 +0000
Subject: Re: 回复: [PHP-DEV] How should I call a PHP function
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-76644@lists.php.net to get a copy of this message
On Mon, 18 Aug 2014, Wei Dai wrote: > > I'm trying to call a function inside a module, a PHP_FUNCTION. > > > > Other than zend_eval_stringl, what's the direct way to do it? > > Please refer to call_user_function and call_user_function_ex. Actually, you need to be careful with this. If you are calling another PHP function in the same extension, do *not* use call_user_function. Instead, create a common C function that you can call from whereever you need to. call_user_function(_ex) is not fast. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine

« previous php.internals (#76644) next »