|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #91 Parsing switches when executed from the command line
Submitted: 1998-02-20 06:54 UTC Modified: 1999-03-20 18:47 UTC
From: chrism at FOUR dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0b4 OS: FreeBSD/Windows
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.
Block user comment
Status: Assign to:
Bug Type:
From: chrism at FOUR dot net
New email:
PHP Version: OS:


 [1998-02-20 06:54 UTC] chrism at FOUR dot net
When using PHP to run scripts from the command line, i've
been unable to successfully parse 'switches' in the
arg vars.

Eg.  a small script (test.php3) which would like to accept
switches (-r, -h etc)
php script has #!/usr/local/bin/php -q at the top to allow
for kernel execution

# test.php -h

Unable to read the '-h' within the argument list, non
switch args passed fine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-20 18:47 UTC] sas
the $argv array is supported
 [2021-09-04 10:33 UTC]
Automatic comment on behalf of sy-records (author) and cmb69 (committer)
Log: Fix #91: curl_version() no longer accepts a parameter
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 13:01:32 2024 UTC