[php-src] Issue #10480: filter_input() ignores $_SERVER['argv'] in cli mode

From: Date: Wed, 01 Feb 2023 10:03:24 +0000
Subject: [php-src] Issue #10480: filter_input() ignores $_SERVER['argv'] in cli mode
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243604@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10480 Author: Boldewyn ### Description The following code: ```php <?php var_dump(filter_input(INPUT_SERVER, 'argv')); ``` when called in a shell in this way: ```sh php index.php ``` resulted in this output: ``` NULL ``` 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_

« previous php.bugs (#243604) next »