diff options
author | Alan Knowles <alan_k@php.net> | 2002-08-05 10:37:40 +0000 |
---|---|---|
committer | Alan Knowles <alan_k@php.net> | 2002-08-05 10:37:40 +0000 |
commit | fd7e7021c7209eecffda07b95ad0c27ae3d6c701 (patch) | |
tree | 1bf3d124a4b384a1a0f570bcba58a27f5e909b87 /pear | |
parent | cf045313e5a9f01565d34771149c66555d0d3404 (diff) | |
download | php-git-fd7e7021c7209eecffda07b95ad0c27ae3d6c701.tar.gz |
Fixed array_shift messing up array_slice..
Diffstat (limited to 'pear')
-rw-r--r-- | pear/Console/Getopt.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 964421943f..15fe9efe34 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -82,6 +82,7 @@ class Console_Getopt { } if (isset($args[0]{0}) && $args[0]{0} != '-') { array_shift($args); + $args = array_values($args); } reset($args); while (list($i, $arg) = each($args)) { |