]> granicus.if.org Git - php/commitdiff
Suppress warning on long-options without an additional argument.
authorMarkus Fischer <mfischer@php.net>
Sun, 11 Nov 2001 03:59:22 +0000 (03:59 +0000)
committerMarkus Fischer <mfischer@php.net>
Sun, 11 Nov 2001 03:59:22 +0000 (03:59 +0000)
pear/Console/Getopt.php

index 14931dec16274f1bd3df9f291bf3cc1a49e33a80..41ea43d27f2aca92fe1311291953f6e2fc42cb0c 100644 (file)
@@ -147,7 +147,7 @@ class Console_Getopt {
      */
     function _parseLongOption($arg, $long_options, &$opts, &$args)
     {
-        list($opt, $opt_arg) = explode('=', $arg);
+        @list($opt, $opt_arg) = explode('=', $arg);
         $opt_len = strlen($opt);
 
         for ($i = 0; $i < count($long_options); $i++) {