[php-src] Issue #21894: PHP command line help text doesn't match behaviour (double dash usage)
| From: | bug-fix0r | Date: | Tue, 28 Apr 2026 07:11:12 +0000 |
| Subject: | [php-src] Issue #21894: PHP command line help text doesn't match behaviour (double dash usage) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252012@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/21894
Author: bug-fix0r
### Description
When I run **php --help** it says:
Usage: php [options] [-f] <file> [--] [args...]
The following code (when run using **php test.php -- test**):
```php
<?php
var_dump($argv);
```
Resulted in this output:
```
array(3) {
[0]=>
string(8) "test.php"
[1]=>
string(2) "--"
[2]=>
string(4) "test"
}
```
But I expected this output instead:
```
array(3) {
[0]=>
string(8) "test.php"
[1]=>
string(4) "test"
}
```
So in my opinion either the help text or the code needs a fix.
### PHP Version
```plain
PHP 8.5.4 (cli)
```
### Operating System
Kubuntu 26.04 LTS