Description
The following code:
<?php
var_dump(filter_input(INPUT_SERVER, 'argv'));
when called in a shell in this way:
resulted in this output:
But I expected this output instead:
array(1) {
[0]=>
string(9) "index.php"
}
Or put another way, filter_input(INPUT_SERVER, 'argv') and $_SERVER['argv'] are not working on the same data.
PHP Version
PHP 8.1.2-1ubuntu2.10 (Ubuntu 22.04) and PHP 8.2.1 (Docker)
Operating System
No response