php-src/Zend/tests/arg_unpack
Nikita Popov d92229d8c7 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.
2020-07-31 15:53:36 +02:00
..
basic.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
by_ref.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
by_ref_separation.phpt Fix SEND_UNPACK array separation 2016-04-16 22:33:23 +02:00
dynamic.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
internal.phpt
invalid_type.phpt Convert "Only arrays and Traversables can be unpacked" into Error 2019-09-27 15:50:34 +02:00
many_args.phpt Implement arrow functions 2019-05-02 15:04:03 +02:00
method.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
new.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
non_integer_keys.phpt Implement named parameters 2020-07-31 15:53:36 +02:00
positional_arg_after_unpack_error.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
string_keys.phpt Implement named parameters 2020-07-31 15:53:36 +02:00
traversable_throwing_exception.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00
traversable_with_by_ref_parameters.phpt Disallow use of positional args after unpacking 2014-02-26 16:40:25 +01:00