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

From: Date: Mon, 06 Nov 2000 10:00:57 +0000
Subject: PHP 4.0 Bug #7657 Updated: $argc / $argv no longer working in command line scripting
Groups: php.dev 
Request: Send a blank email to php-dev+get-37242@lists.php.net to get a copy of this message
ID: 7657 Updated by: stas Reported By: hartmut@six.de Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Fixed in CVS Previous Comments: --------------------------------------------------------------------------- [2000-11-06 03:49:05] hartmut@six.de 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 ... --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7657

« previous php.dev (#37242) next »