]> granicus.if.org Git - php/commitdiff
use $GLOBALS['HTTP_SERVER_VARS'] instead
authorTomas V.V.Cox <cox@php.net>
Fri, 26 Jul 2002 10:11:01 +0000 (10:11 +0000)
committerTomas V.V.Cox <cox@php.net>
Fri, 26 Jul 2002 10:11:01 +0000 (10:11 +0000)
pear/Console/Getopt.php

index c7b802073eab63c8f899cec13274b163d75bc849..1a38534acea52141feccce70e2239a856b86f635 100644 (file)
@@ -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'];
         }