summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2001-05-29 16:18:35 +0000
committerAndrei Zmievski <andrei@php.net>2001-05-29 16:18:35 +0000
commit6c4d96e8ea30f26da94029658bebdd89ad4061b9 (patch)
tree3714c3341b5046f1c5705fe652ca259fbb88394c /pear
parent50bc884f785f45c22caa056dff6bfa1e4c3afb85 (diff)
downloadphp-git-6c4d96e8ea30f26da94029658bebdd89ad4061b9.tar.gz
Fix long option parsing.
Diffstat (limited to 'pear')
-rw-r--r--pear/Console/Getopt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php
index e8f04165a0..b116b20777 100644
--- a/pear/Console/Getopt.php
+++ b/pear/Console/Getopt.php
@@ -180,7 +180,7 @@ class Console_Getopt {
return new Getopt_Error("option --$opt doesn't allow an argument\n");
}
- $opts[] = array('--' . substr($long_opt, 0, strpos($long_opt, '=')), $opt_arg);
+ $opts[] = array('--' . $opt, $opt_arg);
return;
}