com php-src: Give zend_pass_function an arginfo: Ze nd/zend_execute.c
| From: | Nikita Popov | Date: | Tue, 21 Jul 2020 14:01:45 +0000 |
| Subject: | com php-src: Give zend_pass_function an arginfo: Ze nd/zend_execute.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112298@lists.php.net to get a copy of this message | ||
Commit: e079e753dcdf22229d2c386dc6b87f2ebf991721
Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 21 Jul 2020 16:01:45 +0200
Parents: df2749da70c40605799c5328bb545fb6d1709154
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e079e753dcdf22229d2c386dc6b87f2ebf991721
Log:
Give zend_pass_function an arginfo
Now that the ZEND_ACC_VARIADIC flag is set, we should also make
sure there is a variadic arg that can be looked up.
Changed paths:
M Zend/zend_execute.c
Diff:
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index f6ce352ad8..efb2d008a8 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -127,6 +127,10 @@ static ZEND_FUNCTION(pass)
{
}
+ZEND_BEGIN_ARG_INFO_EX(zend_pass_function_arg_info, 0, 0, 0)
+ ZEND_ARG_VARIADIC_INFO(0, args)
+ZEND_END_ARG_INFO()
+
ZEND_API const zend_internal_function zend_pass_function = {
ZEND_INTERNAL_FUNCTION, /* type */
{0, 0, 0}, /* arg_flags */
@@ -136,7 +140,7 @@ ZEND_API const zend_internal_function zend_pass_function = {
NULL, /* prototype */
0, /* num_args */
0, /* required_num_args */
- NULL, /* arg_info */
+ (zend_internal_arg_info *) zend_pass_function_arg_info + 1, /* arg_info */
NULL, /* attributes */
ZEND_FN(pass), /* handler */
NULL, /* module */