History log of /php-src/Zend/tests/trampoline_closure_named_arguments.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# 5c789806 09-Jun-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-11406: segfault with unpacking and magic method closure

The magic method trampoline closure may be variadic. However, the
arg_info for the variadic argument was not set, resulting

Fix GH-11406: segfault with unpacking and magic method closure

The magic method trampoline closure may be variadic. However, the
arg_info for the variadic argument was not set, resulting in a crash
both in reflection and in the VM.

Fix it by creating an arg_info containing a single element in case of
the variadic case. The variadic argument is the last one (and in this
case only one) in the arg_info array.

We make sure the argument info is equivalent to the argument info of
`$closure` of the following code snippet:
```
function foo(...$arguments) {}
$closure = foo(...);
```

Closes GH-11417.

show more ...


# 61e1f8aa 03-Jun-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Let closure created from magic method accept named parameters

Implements GH-11348.

Closes GH-11364.