We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c218f62 + 0b12db6 commit 75bd1a9Copy full SHA for 75bd1a9
Zend/zend_compile.c
@@ -3749,6 +3749,12 @@ static uint32_t zend_compile_args(
3749
"Cannot use argument unpacking after named arguments");
3750
}
3751
3752
+ /* Unpack may contain named arguments. */
3753
+ may_have_undef = 1;
3754
+ if (!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) {
3755
+ *may_have_extra_named_args = 1;
3756
+ }
3757
+
3758
uses_arg_unpack = 1;
3759
fbc = NULL;
3760
@@ -3757,11 +3763,6 @@ static uint32_t zend_compile_args(
3763
opline->op2.num = arg_count;
3764
opline->result.var = EX_NUM_TO_VAR(arg_count - 1);
3765
- /* Unpack may contain named arguments. */
3761
- may_have_undef = 1;
3762
- if (!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) {
- *may_have_extra_named_args = 1;
- }
3766
continue;
3767
3768
0 commit comments