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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbug at zendo dot net
New email:
PHP Version: OS:

 

 [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: Tue May 07 07:01:32 2024 UTC