cvs: php4 /pear/Console Getopt.php
| From: | Markus Fischer | Date: | Sun, 11 Nov 2001 03:59:23 +0000 |
| Subject: | cvs: php4 /pear/Console Getopt.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1289@lists.php.net to get a copy of this message | ||
mfischer Sat Nov 10 22:59:23 2001 EDT
Modified files:
/php4/pear/Console Getopt.php
Log:
Suppress warning on long-options without an additional argument.
Index: php4/pear/Console/Getopt.php
diff -u php4/pear/Console/Getopt.php:1.4 php4/pear/Console/Getopt.php:1.5
--- php4/pear/Console/Getopt.php:1.4 Thu Oct 4 21:32:13 2001
+++ php4/pear/Console/Getopt.php Sat Nov 10 22:59:22 2001
@@ -17,7 +17,7 @@
// | Authors: Andrei Zmievski <andrei@ispi.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Getopt.php,v 1.4 2001/10/05 01:32:13 cox Exp $
+// $Id: Getopt.php,v 1.5 2001/11/11 03:59:22 mfischer Exp $
require_once 'PEAR.php';
@@ -147,7 +147,7 @@
*/
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++) {