]> granicus.if.org Git - php/commitdiff
Allow = sign in long option argument.
authorAndrei Zmievski <andrei@php.net>
Tue, 1 Mar 2005 18:19:12 +0000 (18:19 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 1 Mar 2005 18:19:12 +0000 (18:19 +0000)
Fixes PEAR bug #1831.

pear/Console/Getopt.php

index ed404751898dc296e856f1c79695ec95dafd1129..76c9015a390870f51a48f2ce7bb0adfb49a399a0 100644 (file)
@@ -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++) {