Bug #17053 Updated: argc,argv not defined when running php -q

From: Date: Tue, 07 May 2002 07:30:04 +0000
Subject: Bug #17053 Updated: argc,argv not defined when running php -q
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7123@lists.php.net to get a copy of this message
ID: 17053 Updated by: sander@php.net Reported By: gribnaw@hotmail.com Status: Bogus Bug Type: *General Issues Operating System: Windows PHP Version: 4.2.0 New Comment: That's not the problem. The problem is you're using the CGI-binary and you should use the CLI-binary (php-cli.exe). $argc and $argv will be registered regardless of the register_globals setting. Previous Comments: ------------------------------------------------------------------------ [2002-05-06 18:55:01] alan_k@php.net In PHP 4.2.0, the 'register_globals' setting default changed to be off. See http://www.php.net/release_4_2_0.php for more info. ------------------------------------------------------------------------ [2002-05-06 18:40:41] gribnaw@hotmail.com On clean install of Windows binary 4.2.0 installer: While running php -q on windows release 4.2.0, argc and argv are not defined. The following script reproduces the error message: <?php print $argc; ?> This worked in 4.0.6. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17053&edit=1

« previous php.bugs (#7123) next »