php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22877 incorrect parse of command line args
Submitted: 2003-03-25 09:36 UTC Modified: 2003-07-07 02:42 UTC
From: phpbug at zendo dot net Assigned: ssb (profile)
Status: No Feedback Package: PEAR related
PHP Version: 4.3.0 OS: AIX 5.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-03-25 09:36 UTC] 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);
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 03:45 UTC] arnaud@php.net
Assigning to stig. Or does someone knows how to treat this ?
 [2003-04-28 03:57 UTC] arnaud@php.net
changing status (alan got me again ;)
 [2003-06-30 05:20 UTC] cox@php.net
Please provide a test script. Thanks.
 [2003-07-07 02:42 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC