diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2009-07-01 17:38:03 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2009-07-01 17:38:03 +0000 |
commit | 21d61978dc7c51f3bdb33336a8626ccda52cb998 (patch) | |
tree | decbae3c754101bc997b20ef7f59f16e35edf351 /ext/reflection/php_reflection.c | |
parent | b6bd0f68060df759dfeaba55d84d634656343fc9 (diff) | |
download | php-git-21d61978dc7c51f3bdb33336a8626ccda52cb998.tar.gz |
MFH: Fixed bug #48757 (ReflectionFunction::invoke() parameter issues)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 392615feb6..421a0aae7c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1717,7 +1717,7 @@ ZEND_METHOD(reflection_function, getStaticVariables) } /* }}} */ -/* {{{ proto public mixed ReflectionFunction::invoke(mixed* args) +/* {{{ proto public mixed ReflectionFunction::invoke([mixed* args]) Invokes the function */ ZEND_METHOD(reflection_function, invoke) { @@ -1732,7 +1732,7 @@ ZEND_METHOD(reflection_function, invoke) METHOD_NOTSTATIC(reflection_function_ptr); GET_REFLECTION_OBJECT_PTR(fptr); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "+", ¶ms, &num_args) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "*", ¶ms, &num_args) == FAILURE) { return; } @@ -5008,7 +5008,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_function___construct, 0) ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO(arginfo_reflection_function_invoke, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_reflection_function_invoke, 0, 0, 0) ZEND_ARG_INFO(0, args) ZEND_END_ARG_INFO() |