#22877 [NEW]: incorrect parse of command line args
| From: | phpbug at zendo dot net | Date: | Tue, 25 Mar 2003 15:36:04 +0000 |
| Subject: | #22877 [NEW]: incorrect parse of command line args | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14606@lists.php.net to get a copy of this message | ||
From: phpbug at zendo dot net
Operating system: AIX 5.2
PHP version: 4.3.0
PHP Bug Type: PEAR related
Bug description: incorrect parse of command line args
// bug in Console/Getopt.php workaround
// if there isn't a '-' in the first arg it skips the first arg
// it still skips the first arg if the first arg does not have a -
// but the second arg does
// below is a work around
if(!array_key_exists(0,$options[0]) && isset($args[0]) ) {
$tmparray = array_reverse($options[1]);
$tmparray[] = $args[0] ;
$options[1] = array_reverse($tmparray);
unset($tmparray);
}
--
Edit bug report at http://bugs.php.net/?id=22877&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22877&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22877&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22877&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22877&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22877&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22877&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22877&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22877&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22877&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22877&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22877&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22877&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22877&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22877&r=gnused