PHP 4.0 Bug #7657: $argc / $argv no longer working in command line scripting

From: Date: Mon, 06 Nov 2000 08:49:05 +0000
Subject: PHP 4.0 Bug #7657: $argc / $argv no longer working in command line scripting
Groups: php.dev 
Request: Send a blank email to php-dev+get-37232@lists.php.net to get a copy of this message
From: hartmut@six.de Operating system: *nix PHP version: 4.0 Latest CVS (06/11/2000) PHP Bug Type: Scripting Engine problem Bug description: $argc / $argv no longer working in command line scripting when using the cgi version of php as a command line script processor it does no longer transfer command line arguments into the $argv array the following script argv.php <?php var_dump($argc); var_dump($argv); ?> when called as php -q argv.php abc def should return (and does so up to PHP 4.0.3pl1) int(3) array(3) { [0]=> string(8) "argv.php" [1]=> string(3) "abc" [2]=> string(3) "def" } recent CVS versions of php 4.0.4dev return int(0) array(0) { } instead ... -- Edit Bug report at: http://bugs.php.net/?id=7657&edit=1

« previous php.dev (#37232) next »