php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27834 $_SERVER['argv'] not available without register_argc_argv
Submitted: 2004-04-02 02:41 UTC Modified: 2004-04-08 11:42 UTC
From: dwalton at acm dot org Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.0.0RC1 OS: FreeBSD 4.8-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dwalton at acm dot org
New email:
PHP Version: OS:

 

 [2004-04-02 02:41 UTC] 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).



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-07 04:34 UTC] 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-07 17:31 UTC] 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-08 11:42 UTC] sniper@php.net
Try the CLI version. (CGI != CLI, the manual page you refer to is about CLI..)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC