From: Andrei Zmievski Date: Tue, 1 Mar 2005 18:19:12 +0000 (+0000) Subject: Allow = sign in long option argument. X-Git-Tag: RELEASE_0_3~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=584f64ed62d5700b91752be6198674630be15859;p=php Allow = sign in long option argument. Fixes PEAR bug #1831. --- 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++) {