Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Yader Hernandez
On Sat, Apr 28, 2012 at 3:15 PM, Nikita Popov wrote: > On Sat, Apr 28, 2012 at 11:49 PM, Yader Hernandez > wrote: > > I had a look at > > > http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#4714 > > and > > I don't understand how it's passing the arguments into the closure g

Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Nikita Popov
On Sat, Apr 28, 2012 at 11:49 PM, Yader Hernandez wrote: > I had a look at > http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#4714 > and > I don't understand how it's passing the arguments into the closure given by > the user. > > I can successfully call the closure given, b

Re: [PHP-DEV] call user defined function with args

2012-04-28 Thread Yader Hernandez
On Fri, Apr 27, 2012 at 1:06 AM, jpauli wrote: > You might be interested by zend_call_method_with_[XXX]_params() as > well http://lxr.php.net/xref/PHP_5_3/Zend/zend_interfaces.h > > Julien.Pauli > > On Fri, Apr 27, 2012 at 8:51 AM, Laruence wrote: > > Hi: > > you can refer to zif_call_user_func

Re: [PHP-DEV] call user defined function with args

2012-04-27 Thread jpauli
You might be interested by zend_call_method_with_[XXX]_params() as well http://lxr.php.net/xref/PHP_5_3/Zend/zend_interfaces.h Julien.Pauli On Fri, Apr 27, 2012 at 8:51 AM, Laruence wrote: > Hi: >  you can refer to zif_call_user_func, which could be find at > http://lxr.php.net/opengrok/xref/PHP

Re: [PHP-DEV] call user defined function with args

2012-04-26 Thread Laruence
Hi: you can refer to zif_call_user_func, which could be find at http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#4714 thanks On Fri, Apr 27, 2012 at 12:43 PM, Yader Hernandez wrote: > Hello, > > I found this zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache

[PHP-DEV] call user defined function with args

2012-04-26 Thread Yader Hernandez
Hello, I found this zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TSRMLS_DC) and many examples using it. I can successfully call this and it will call the user function for me. I'm interested in learning how to not only call the function, but also pass arguments to that