From: Andrei Zmievski Date: Fri, 5 Dec 2003 22:02:48 +0000 (+0000) Subject: MFB X-Git-Tag: php-5.0.0b3RC1~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3d2fd336cf7e2934b4ce8654390ad1947921220;p=php MFB --- diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 9bc48c1480..133a5bf313 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -80,9 +80,7 @@ class Console_Getopt { if ($long_options) { sort($long_options); } - if (isset($args[0]{0}) && $args[0]{0} != '-') { - array_shift($args); - } + reset($args); while (list($i, $arg) = each($args)) {