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

[email protected] (Chris Wright)
Newsgroups php.internals
Message-ID <CAGAGxbYGtaK2g+CT=HyxjdbgoAEyKCUo8OaMr4oP17T3YaKVzA@mail.gmail.com>
On 18 August 2014 03:37, Wei Dai <[email protected]> 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
;-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.