#20299 [Bgs->Opn]: On the command line, $argv/ $argc are not set

From: Date: Thu, 07 Nov 2002 14:48:44 +0000
Subject: #20299 [Bgs->Opn]: On the command line, $argv/ $argc are not set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24277@lists.php.net to get a copy of this message
ID: 20299 User updated by: web@affenkrieger.de Reported By: web@affenkrieger.de -Status: Bogus +Status: Open Bug Type: Variables related Operating System: WinNT SP6 PHP Version: 4.2.3 New Comment: this is the script 'test.php' ----- <?php print_r($argv); ?> ----- when called via c:\>php -f test.php test bla testagain it should print: ------ Array ( [0] => test.php [1] => test [2] => bla [3] => testagain ) ----- but nothing happens. i used php 4.2.3 win32 binaries (zip) on a WinNT SP6 PC. all other things seem to work. Previous Comments: ------------------------------------------------------------------------ [2002-11-07 08:36:41] cynic@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-11-07 08:28:58] web@affenkrieger.de Using php on the command line, the variables $argv and $argc are not set even when arguments are present. I used the newest win32 zip package from php.net. But it worked on a linux system ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20299&edit=1

« previous php.bugs (#24277) next »