File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ PHP NEWS
18
18
. Fixed potential OOB when checking for trailing spaces on Windows. (cmb)
19
19
. Fixed bug GH-17408 (Assertion failure Zend/zend_exceptions.c).
20
20
(nielsdos, ilutov)
21
+ . Fix may_have_extra_named_args flag for ZEND_AST_UNPACK. (nielsdos)
21
22
22
23
- DOM:
23
24
. Fixed bug GH-17397 (Assertion failure ext/dom/php_dom.c). (nielsdos)
Original file line number Diff line number Diff line change @@ -3753,6 +3753,12 @@ static uint32_t zend_compile_args(
3753
3753
"Cannot use argument unpacking after named arguments" );
3754
3754
}
3755
3755
3756
+ /* Unpack may contain named arguments. */
3757
+ may_have_undef = 1 ;
3758
+ if (!fbc || (fbc -> common .fn_flags & ZEND_ACC_VARIADIC )) {
3759
+ * may_have_extra_named_args = 1 ;
3760
+ }
3761
+
3756
3762
uses_arg_unpack = 1 ;
3757
3763
fbc = NULL ;
3758
3764
@@ -3761,11 +3767,6 @@ static uint32_t zend_compile_args(
3761
3767
opline -> op2 .num = arg_count ;
3762
3768
opline -> result .var = EX_NUM_TO_VAR (arg_count - 1 );
3763
3769
3764
- /* Unpack may contain named arguments. */
3765
- may_have_undef = 1 ;
3766
- if (!fbc || (fbc -> common .fn_flags & ZEND_ACC_VARIADIC )) {
3767
- * may_have_extra_named_args = 1 ;
3768
- }
3769
3770
continue ;
3770
3771
}
3771
3772
You can’t perform that action at this time.
0 commit comments