mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix may_have_extra_named_args flag for ZEND_AST_UNPACK
This commit is contained in:
@@ -3749,6 +3749,12 @@ static uint32_t zend_compile_args(
|
||||
"Cannot use argument unpacking after named arguments");
|
||||
}
|
||||
|
||||
/* Unpack may contain named arguments. */
|
||||
may_have_undef = 1;
|
||||
if (!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) {
|
||||
*may_have_extra_named_args = 1;
|
||||
}
|
||||
|
||||
uses_arg_unpack = 1;
|
||||
fbc = NULL;
|
||||
|
||||
@@ -3757,11 +3763,6 @@ static uint32_t zend_compile_args(
|
||||
opline->op2.num = arg_count;
|
||||
opline->result.var = EX_NUM_TO_VAR(arg_count - 1);
|
||||
|
||||
/* Unpack may contain named arguments. */
|
||||
may_have_undef = 1;
|
||||
if (!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC)) {
|
||||
*may_have_extra_named_args = 1;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user