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

[email protected] (ProtocolLive)
Newsgroups php.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.