php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21994 [Console_Getopt] 0 not seen as an argument
Submitted: 2003-02-01 07:11 UTC Modified: 2003-06-30 05:10 UTC
From: lars at segv dot dk Assigned: ssb (profile)
Status: Closed Package: PEAR related
PHP Version: 4.2.3 OS: Debian GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lars at segv dot dk
New email:
PHP Version: OS:

 

 [2003-02-01 07:11 UTC] lars at segv dot dk
Using PEAR::Console_Getopt, 0 is not seen as an argument. For example: "./test.php --opt=0" gives:
error: Console_Getopt: option --opt requires an argument

The expected result would be:

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [0] => --opt
                    [1] => 0
                )

        )

    [1] => Array
        (
        )

)

Regards
Lars Munch

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 04:01 UTC] arnaud@php.net
Assigning to stig
 [2003-06-30 05:10 UTC] cox@php.net
Fixed in CVS thanks for the report
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC