From: Tomas V.V.Cox Date: Fri, 26 Jul 2002 10:11:01 +0000 (+0000) Subject: use $GLOBALS['HTTP_SERVER_VARS'] instead X-Git-Tag: dev~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6eed1b02432ecbd3e38390d2c6860e2c947cc5dc;p=php use $GLOBALS['HTTP_SERVER_VARS'] instead --- diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index c7b802073e..1a38534ace 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -210,10 +210,10 @@ class Console_Getopt { global $argv; if (!is_array($argv)) { if (!@is_array($_SERVER['argv'])) { - if (!@is_array($HTTP_SERVER_VARS['argv'])) { + if (!@is_array($GLOBALS['HTTP_SERVER_VARS']['argv'])) { return PEAR::raiseError("Console_Getopt: Could not read cmd args (register_argc_argv=Off?)"); } - return $HTTP_SERVER_VARS['argv']; + return $GLOBALS['HTTP_SERVER_VARS']['argv']; } return $_SERVER['argv']; }