diff options
author | Andrei Zmievski <andrei@php.net> | 2006-10-11 18:37:31 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2006-10-11 18:37:31 +0000 |
commit | 97d0372249ffb1fc54e3626781bc012dfcaabb77 (patch) | |
tree | c898e0994645d121cb49187e66227f66e60ddea8 /Zend/zend_API.h | |
parent | 104c8286622c0613b4b20ea550259b5946c04f48 (diff) | |
download | php-git-97d0372249ffb1fc54e3626781bc012dfcaabb77.tar.gz |
Extend zend_fcall_info_args functions. (Patch from Mike Wallner)
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r-- | Zend/zend_API.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index d3121a1e06..8922f3899e 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1373,14 +1373,21 @@ ZEND_API extern zend_fcall_info_cache empty_fcall_info_cache; * In order to pass parameters the following members need to be set: * fci->param_count = 0; * fci->params = NULL; + * The callable_name argument may be NULL. */ -ZEND_API int zend_fcall_info_init(zval *callable, zend_fcall_info *fci, zend_fcall_info_cache *fcc TSRMLS_DC); +ZEND_API int zend_fcall_info_init(zval *callable, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *callable_name TSRMLS_DC); /** Set or clear the arguments in the zend_call_info struct taking care of * refcount. If args is NULL and arguments are set then those are cleared. */ ZEND_API int zend_fcall_info_args(zend_fcall_info *fci, zval *args TSRMLS_DC); +/** Set arguments in the zend_fcall_info struct taking care of refcount. + * If argc is 0 the arguments which are set will be cleared, else pass + * a variable amount of zval** arguments. + */ +ZEND_API int zend_fcall_info_argn(zend_fcall_info *fci TSRMLS_DC, int argc, ...); + /** Call a function using information created by zend_fcall_info_init()/args(). * If args is given then those replace the arguement info in fci is temporarily. */ |