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

From: Date: Wed, 07 Apr 2004 08:34:23 +0000
Subject: #27834 [Opn->Fbk]: $_SERVER['argv'] not available without register_argc_argv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57620@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: Feedback Bug Type: *Configuration Issues Operating System: FreeBSD 4.8-STABLE PHP Version: 5.0.0RC1 New Comment: 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.. Previous Comments: ------------------------------------------------------------------------ [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 (#57620) next »