mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
![]() 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. |
||
---|---|---|
.. | ||
basic.phpt | ||
by_ref.phpt | ||
by_ref_separation.phpt | ||
dynamic.phpt | ||
internal.phpt | ||
invalid_type.phpt | ||
many_args.phpt | ||
method.phpt | ||
new.phpt | ||
non_integer_keys.phpt | ||
positional_arg_after_unpack_error.phpt | ||
string_keys.phpt | ||
traversable_throwing_exception.phpt | ||
traversable_with_by_ref_parameters.phpt |