Skip to content

Commit e079e75

Browse files
committed
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.
1 parent df2749d commit e079e75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Zend/zend_execute.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ static ZEND_FUNCTION(pass)
127127
{
128128
}
129129

130+
ZEND_BEGIN_ARG_INFO_EX(zend_pass_function_arg_info, 0, 0, 0)
131+
ZEND_ARG_VARIADIC_INFO(0, args)
132+
ZEND_END_ARG_INFO()
133+
130134
ZEND_API const zend_internal_function zend_pass_function = {
131135
ZEND_INTERNAL_FUNCTION, /* type */
132136
{0, 0, 0}, /* arg_flags */
@@ -136,7 +140,7 @@ ZEND_API const zend_internal_function zend_pass_function = {
136140
NULL, /* prototype */
137141
0, /* num_args */
138142
0, /* required_num_args */
139-
NULL, /* arg_info */
143+
(zend_internal_arg_info *) zend_pass_function_arg_info + 1, /* arg_info */
140144
NULL, /* attributes */
141145
ZEND_FN(pass), /* handler */
142146
NULL, /* module */

0 commit comments

Comments
 (0)