[php-src] Issue #21940: func_get_args() don't work with named argument

From: Date: Sun, 03 May 2026 13:38:04 +0000
Subject: [php-src] Issue #21940: func_get_args() don't work with named argument
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-252032@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/21940 Author: ProtocolLive ### Description The function func_get_args don't work with named arguments https://3v4l.org/sDNW1#v8.5.3 ```php <?php function foo( string|null $first = null, string|null $second = null, mixed ...$others ){ var_dump(func_get_args()); } foo(others:1); ``` ### PHP Version ```plain 8.5.3 ``` ### Operating System Both

« previous php.bugs (#252032) next »