php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1945 CGI - problem with parameters !?
Submitted: 1999-08-02 10:58 UTC Modified: 2000-05-24 03:09 UTC
From: gregori at datanetms dot co dot uk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 1 OS: linux (Redhat 6)
Private report: No CVE-ID: None
 [1999-08-02 10:58 UTC] gregori at datanetms dot co dot uk
I think that those two command line should give the same result !?

$ php -v -q 
Content-Type: text/html

4.0B1

$ php -q -v                         
4.0B1



no ?!

gregori

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-24 03:09 UTC] hholzgra at cvs dot php dot net
this was because -v is a bailout-option ( as is -h )
it will do it's work and then exit ignoring anything
behind it on the command line
(this is common behavior for most command line tools)

so in 'php -v -q' the -q was never seen

but as -v and -h are only useful as interactive
options and for version checking in shell scripts
(including configure scripts), there was no sense
in putting out http-headers anyway, so i removed
it lately while fixing another issue
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 19:00:01 2026 UTC