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

2014-08-19 Thread Wei Dai
> On Tue, 19 Aug 2014, Wei Dai wrote: > > > > 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_funct

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

2014-08-19 Thread Pierre Joye
On Tue, Aug 19, 2014 at 11:11 AM, Wei Dai wrote: > > On Tue, Aug 19, 2014 at 10:55 AM, Derick Rethans wrote: > > On Tue, 19 Aug 2014, Wei Dai wrote: > > On Mon, 18 Aug 2014, Wei Dai wrote: > > > so, i have two options: > > 1. copy the duplicate code into my extension, It can be fast in this > way

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

2014-08-19 Thread Wei Dai
> On Tue, Aug 19, 2014 at 10:55 AM, Derick Rethans (mailto:der...@php.net)> wrote: > > On Tue, 19 Aug 2014, Wei Dai wrote: > > > > > > On Mon, 18 Aug 2014, Wei Dai wrote: > > > > so, i have two options: > > > > > > 1. copy the duplicate code into my extension, It can be fast in this > > > w

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

2014-08-19 Thread Pierre Joye
On Tue, Aug 19, 2014 at 10:55 AM, Derick Rethans wrote: > On Tue, 19 Aug 2014, Wei Dai wrote: > >> > On Mon, 18 Aug 2014, Wei Dai wrote: >> so, i have two options: >> >> 1. copy the duplicate code into my extension, It can be fast in this >> way, but the code is not beautiful. >> >> 2. call call_

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

2014-08-19 Thread Derick Rethans
On Tue, 19 Aug 2014, Wei Dai wrote: > > 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. > > >

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

2014-08-18 Thread Wei Dai
Hi Derick, > 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

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

2014-08-18 Thread Derick Rethans
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 ca

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

2014-08-18 Thread Johannes Schlüter
On Mon, 2014-08-18 at 10:37 +0800, Wei Dai 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. See also the set of zend_c

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

2014-08-18 Thread Chris Wright
On 18 August 2014 03:37, Wei Dai 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

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

2014-08-17 Thread Wei Dai
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. > > > -- > Best Regards, > Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ > Finger

[PHP-DEV] How should I call a PHP function

2014-08-17 Thread Aaron Lewis
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? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 -- PHP Internals - PHP Runt