#22877 [Opn->Asn]: incorrect parse of command line args
| From: | arnaud@php.net | Date: | Mon, 28 Apr 2003 08:57:24 +0000 |
| Subject: | #22877 [Opn->Asn]: incorrect parse of command line args | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15659@lists.php.net to get a copy of this message | ||
ID: 22877
Updated by: arnaud@php.net
Reported By: phpbug at zendo dot net
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: AIX 5.2
PHP Version: 4.3.0
Assigned To: ssb
New Comment:
changing status (alan got me again ;)
Previous Comments:
------------------------------------------------------------------------
[2003-04-28 03:45:06] arnaud@php.net
Assigning to stig. Or does someone knows how to treat this ?
------------------------------------------------------------------------
[2003-03-25 09:36:04] phpbug at zendo dot net
// 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 this bug report at http://bugs.php.net/?id=22877&edit=1