mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Required argument can't be IS_UNDEF anymore.
This commit is contained in:
parent
d3ebf02270
commit
9e18895ee5
@ -2893,12 +2893,6 @@ static void zend_update_type_info(const zend_op_array *op_array,
|
||||
if (func_info && (int)opline->op1.num-1 < func_info->num_args) {
|
||||
tmp = (tmp & (MAY_BE_RC1|MAY_BE_RCN|MAY_BE_REF)) |
|
||||
(tmp & func_info->arg_info[opline->op1.num-1].info.type);
|
||||
} else {
|
||||
if (opline->opcode == ZEND_RECV && (!arg_info || arg_info->type_hint == IS_UNDEF)) {
|
||||
/* If the argument has no default value and no typehint, it is possible
|
||||
* to pass less arguments than the function expects */
|
||||
tmp |= MAY_BE_UNDEF|MAY_BE_RC1;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
/* We won't recieve unused arguments */
|
||||
|
Loading…
Reference in New Issue
Block a user