|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-06 05:00 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
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 ...