History log of /PHP-8.1/Zend/tests/named_params/unknown_named_param.phpt (Results 1 – 4 of 4)
Revision Date Author Comments
# 795ad1e3 26-Aug-2020 Nikita Popov

Fix memory leak on unknown named param in iterator unpack


# 492621f9 26-Aug-2020 Nikita Popov

Fix memory leak on unknown named param


# 1954aed7 26-Aug-2020 Nikita Popov

Fix over-eager named params optimization

We can't relax a named param to a positional param if we encountered
any unknown parameters in the meantime.


# d92229d8 06-Apr-2020 Nikita Popov

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument nam

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument name. For now, it is looked up by linear scan and
runtime cached.
* This may leave UNDEF arguments on the stack. To avoid having
to deal with them in other places, a CHECK_UNDEF_ARGS opcode
is used to either replace them with defaults, or error.
* For variadic functions, EX(extra_named_params) are collected
and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS.

RFC: https://wiki.php.net/rfc/named_params

Closes GH-5357.

show more ...