summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-07-26 10:11:01 +0000
committerTomas V.V.Cox <cox@php.net>2002-07-26 10:11:01 +0000
commit6eed1b02432ecbd3e38390d2c6860e2c947cc5dc (patch)
tree8893e951cd25ac75c9ff5adb11e832db06b55078
parent1690154e62046cc65a6fefe5780c6d630c98f30f (diff)
downloadphp-git-6eed1b02432ecbd3e38390d2c6860e2c947cc5dc.tar.gz
use $GLOBALS['HTTP_SERVER_VARS'] instead
-rw-r--r--pear/Console/Getopt.php4
1 files changed, 2 insertions, 2 deletions
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'];
}