summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2005-03-01 18:19:12 +0000
committerAndrei Zmievski <andrei@php.net>2005-03-01 18:19:12 +0000
commit584f64ed62d5700b91752be6198674630be15859 (patch)
tree50d9de397270f3c6131cda7c91393c5caf554771 /pear
parent033a45903c063b118c4a293a2762da70fe75199d (diff)
downloadphp-git-584f64ed62d5700b91752be6198674630be15859.tar.gz
Allow = sign in long option argument.
Fixes PEAR bug #1831.
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 ed40475189..76c9015a39 100644
--- a/pear/Console/Getopt.php
+++ b/pear/Console/Getopt.php
@@ -184,7 +184,7 @@ class Console_Getopt {
*/
function _parseLongOption($arg, $long_options, &$opts, &$args)
{
- @list($opt, $opt_arg) = explode('=', $arg);
+ @list($opt, $opt_arg) = explode('=', $arg, 2);
$opt_len = strlen($opt);
for ($i = 0; $i < count($long_options); $i++) {