#23476 [NEW]: Console::Getopt: Long option ==0 not detected

From: Date: Sun, 04 May 2003 12:14:45 +0000
Subject: #23476 [NEW]: Console::Getopt: Long option ==0 not detected
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15823@lists.php.net to get a copy of this message
From: vonderheide at redlink dot de Operating system: PHP version: 4.3.2RC2 PHP Bug Type: PEAR related Bug description: Console::Getopt: Long option ==0 not detected When giving a long option as 0 (as in --offset=0), Getopt raises a "Console_Getopt: option --$opt requires an argument" error. The bug is in line 186 (current CVS): if (!$opt_arg && !(list(, $opt_arg) = each($args))) { This can be fixed by replacing !$opt_arg with $opt_arg !== '' although I haven't checked if this has any side effects. -- Edit bug report at http://bugs.php.net/?id=23476&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23476&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23476&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23476&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23476&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23476&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23476&r=support Expected behavior: http://bugs.php.net/fix.php?id=23476&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23476&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23476&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23476&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23476&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23476&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23476&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23476&r=gnused

« previous php.pear.dev (#15823) next »