cvs: php4 /pear/scripts pear.in
| From: | Stig Bakken | Date: | Sun, 26 May 2002 12:51:10 +0000 |
| Subject: | cvs: php4 /pear/scripts pear.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4090@lists.php.net to get a copy of this message | ||
ssb Sun May 26 08:51:10 2002 EDT
Modified files:
/php4/pear/scripts pear.in
Log:
* Console_Getopt POSIX fix
Index: php4/pear/scripts/pear.in
diff -u php4/pear/scripts/pear.in:1.51 php4/pear/scripts/pear.in:1.52
--- php4/pear/scripts/pear.in:1.51 Mon May 20 21:27:53 2002
+++ php4/pear/scripts/pear.in Sun May 26 08:51:10 2002
@@ -19,8 +19,11 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: pear.in,v 1.51 2002/05/21 01:27:53 ssb Exp $
+// $Id: pear.in,v 1.52 2002/05/26 12:51:10 ssb Exp $
+/**
+ * @nodep Gtk
+ */
ini_set('allow_url_fopen', true);
set_time_limit(0);
ob_implicit_flush(true);
@@ -36,7 +39,7 @@
$all_commands = PEAR_Command::getCommands();
$argv = Console_Getopt::readPHPArgv();
-$progname = basename(array_shift($argv));
+$progname = basename($argv[0]);
$options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:v");
if (PEAR::isError($options)) {
usage($options);
@@ -120,7 +123,7 @@
$config->store('user');
}
-$command = (isset($options[1][0])) ? array_shift($options[1]) : null;
+$command = (isset($options[1][0])) ? $options[1][0] : null;
if (empty($command) && ($store_user_config || $store_system_config)) {
exit;