Re: 回复: [PHP-DEV] How should I call a PHP function
| From: | Chris Wright | Date: | Mon, 18 Aug 2014 09:36: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-76638@lists.php.net to get a copy of this message | ||
On 18 August 2014 03:37, Wei Dai <zxcvdavid@gmail.com> wrote:
> Hi,
>> Hi,
>>
>> 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.
...and along these lines, when you need to do something that is done
in other parts of the codebase, take a look at how those other parts
do them - searching lxr for "call_user_func" led me straight to
http://lxr.php.net/xref/PHP_5_6/ext/standard/basic_functions.c#4738
;-)