#27834 [Fbk->Opn]: $_SERVER['argv'] not available without register_argc_argv
| From: | dwalton at acm dot org | Date: | Wed, 07 Apr 2004 21:31:37 +0000 |
| Subject: | #27834 [Fbk->Opn]: $_SERVER['argv'] not available without register_argc_argv | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57743@lists.php.net to get a copy of this message | ||
ID: 27834
User updated by: dwalton at acm dot org
Reported By: dwalton at acm dot org
-Status: Feedback
+Status: Open
Bug Type: *Configuration Issues
Operating System: FreeBSD 4.8-STABLE
PHP Version: 5.0.0RC1
New Comment:
I just tried php5-200404072030. $_SERVER['argc'] and $_SERVER['argv']
are still being controlled by register_argc_argv.
Previous Comments:
------------------------------------------------------------------------
[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