cvs: php4 /pear/Console Getopt.php

From: Date: Fri, 26 Jul 2002 10:11:01 +0000
Subject: cvs: php4 /pear/Console Getopt.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5353@lists.php.net to get a copy of this message
cox Fri Jul 26 06:11:01 2002 EDT Modified files: /php4/pear/Console Getopt.php Log: use $GLOBALS['HTTP_SERVER_VARS'] instead Index: php4/pear/Console/Getopt.php diff -u php4/pear/Console/Getopt.php:1.17 php4/pear/Console/Getopt.php:1.18 --- php4/pear/Console/Getopt.php:1.17 Fri Jul 26 06:01:28 2002 +++ php4/pear/Console/Getopt.php Fri Jul 26 06:11:01 2002 @@ -16,7 +16,7 @@ // | Author: Andrei Zmievski <andrei@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Getopt.php,v 1.17 2002/07/26 10:01:28 cox Exp $ +// $Id: Getopt.php,v 1.18 2002/07/26 10:11:01 cox Exp $ require_once 'PEAR.php'; @@ -210,10 +210,10 @@ 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']; }

« previous php.pear.cvs (#5353) next »