#22877 [Asn->Fbk]: incorrect parse of command line args

From: Date: Mon, 30 Jun 2003 10:20:41 +0000
Subject: #22877 [Asn->Fbk]: incorrect parse of command line args
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17856@lists.php.net to get a copy of this message
ID: 22877 Updated by: cox@php.net Reported By: phpbug at zendo dot net -Status: Assigned +Status: Feedback Bug Type: PEAR related Operating System: AIX 5.2 PHP Version: 4.3.0 Assigned To: ssb New Comment: Please provide a test script. Thanks. Previous Comments: ------------------------------------------------------------------------ [2003-04-28 03:57:24] arnaud@php.net changing status (alan got me again ;) ------------------------------------------------------------------------ [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

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