From 584f64ed62d5700b91752be6198674630be15859 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 1 Mar 2005 18:19:12 +0000 Subject: [PATCH] Allow = sign in long option argument. Fixes PEAR bug #1831. --- pear/Console/Getopt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.40.0