1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00
Files
archived-php-src/ext/opcache/Optimizer
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
..
2020-07-24 10:05:03 +02:00
2020-07-31 15:53:36 +02:00
2019-02-05 10:33:28 +03:00
2020-07-24 10:05:03 +02:00
2020-07-24 10:05:03 +02:00
2020-03-17 15:23:52 +01:00
2019-02-05 10:33:28 +03:00
2020-07-24 10:05:03 +02:00
2020-01-16 19:14:31 +01:00
2020-07-24 10:05:03 +02:00
2019-10-09 13:48:39 +03:00
2020-07-31 15:53:36 +02:00
2020-07-31 15:53:36 +02:00
2020-07-24 10:05:03 +02:00
2020-07-31 15:53:36 +02:00
2019-10-03 02:18:16 +03:00
2020-07-24 10:05:03 +02:00
2019-02-05 10:33:28 +03:00