File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3749,6 +3749,12 @@ static uint32_t zend_compile_args(
3749
3749
"Cannot use argument unpacking after named arguments" );
3750
3750
}
3751
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
+
3752
3758
uses_arg_unpack = 1 ;
3753
3759
fbc = NULL ;
3754
3760
@@ -3757,11 +3763,6 @@ static uint32_t zend_compile_args(
3757
3763
opline -> op2 .num = arg_count ;
3758
3764
opline -> result .var = EX_NUM_TO_VAR (arg_count - 1 );
3759
3765
3760
- /* Unpack may contain named arguments. */
3761
- may_have_undef = 1 ;
3762
- if (!fbc || (fbc -> common .fn_flags & ZEND_ACC_VARIADIC )) {
3763
- * may_have_extra_named_args = 1 ;
3764
- }
3765
3766
continue ;
3766
3767
}
3767
3768
You can’t perform that action at this time.
0 commit comments