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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 17:05:52 2022 UTC