summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorAlan Knowles <alan_k@php.net>2002-08-05 10:37:40 +0000
committerAlan Knowles <alan_k@php.net>2002-08-05 10:37:40 +0000
commitfd7e7021c7209eecffda07b95ad0c27ae3d6c701 (patch)
tree1bf3d124a4b384a1a0f570bcba58a27f5e909b87 /pear
parentcf045313e5a9f01565d34771149c66555d0d3404 (diff)
downloadphp-git-fd7e7021c7209eecffda07b95ad0c27ae3d6c701.tar.gz
Fixed array_shift messing up array_slice..
Diffstat (limited to 'pear')
-rw-r--r--pear/Console/Getopt.php1
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)) {