#27834 [Opn->Bgs]: $_SERVER['argv'] not available without register_argc_argv

From: Date: Thu, 08 Apr 2004 15:42:01 +0000
Subject: #27834 [Opn->Bgs]: $_SERVER['argv'] not available without register_argc_argv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57791@lists.php.net to get a copy of this message
ID: 27834 Updated by: sniper@php.net Reported By: dwalton at acm dot org -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: FreeBSD 4.8-STABLE PHP Version: 5.0.0RC1 New Comment: Try the CLI version. (CGI != CLI, the manual page you refer to is about CLI..) Previous Comments: ------------------------------------------------------------------------ [2004-04-07 17:31:37] dwalton at acm dot org I just tried php5-200404072030. $_SERVER['argc'] and $_SERVER['argv'] are still being controlled by register_argc_argv. ------------------------------------------------------------------------ [2004-04-07 04:34:23] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Works fine for me.. ------------------------------------------------------------------------ [2004-04-02 02:41:51] dwalton at acm dot org Description: ------------ According to the command line docs (http://www.php.net/manual/en/features.commandline.php): "Regardless of version or register_globals setting, you can always go through either $_SERVER or $HTTP_SERVER_VARS. Example: $_SERVER['argv']" This appears to not be the case. While attempting to use $_SERVER['argc'] and $_SERVER['argv'] with the CGI version of 5.0RC1 with register_globals turned off, I discovered they were not being set. However, they do appear when I turn on register_argc_argv (which is only supposed to control $argc and $argv). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27834&edit=1

« previous php.bugs (#57791) next »