cvs: php4 /pear/scripts pear-get.in
| From: | Thomas V.V.Cox | Date: | Sat, 05 Jan 2002 17:20:08 +0000 |
| Subject: | cvs: php4 /pear/scripts pear-get.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1835@lists.php.net to get a copy of this message | ||
cox Sat Jan 5 12:20:08 2002 EDT
Modified files:
/php4/pear/scripts pear-get.in
Log:
Added check for $argv avaible
(thanks Michael Härtl <mhaertl@pressline.de>)
Index: php4/pear/scripts/pear-get.in
diff -u php4/pear/scripts/pear-get.in:1.1 php4/pear/scripts/pear-get.in:1.2
--- php4/pear/scripts/pear-get.in:1.1 Wed Jan 2 12:11:34 2002
+++ php4/pear/scripts/pear-get.in Sat Jan 5 12:20:08 2002
@@ -49,7 +49,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?qu:v");
if (PEAR::isError($options)) {
usage($options);