cvs: php4 /pear/scripts pear.in

From: Date: Sat, 05 Jan 2002 17:18:23 +0000
Subject: cvs: php4 /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1834@lists.php.net to get a copy of this message
cox Sat Jan 5 12:18:23 2002 EDT Modified files: /php4/pear/scripts pear.in Log: Added check for $argv avaible (thanks Michael Härtl <mhaertl@pressline.de>) Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.26 php4/pear/scripts/pear.in:1.27 --- php4/pear/scripts/pear.in:1.26 Wed Jan 2 12:11:34 2002 +++ php4/pear/scripts/pear.in Sat Jan 5 12:18:23 2002 @@ -52,7 +52,9 @@ PEAR::setErrorHandling(PEAR_ERROR_PRINT, "pear: %s\n"); // {{{ config file and option parsing - +if (!isset($argv)) { + die("Could not read cmd args (register_argc_argv=Off?)\n"); +} $options = Console_Getopt::getopt($argv, "c:C:d:D:h?sSqu:v"); if (PEAR::isError($options)) { usage($options); @@ -338,10 +340,10 @@ case 'upload-release': { if (sizeof($cmdargs) < 1) { - + } $tarball = $cmdargs[0]; - + } // }}}

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