php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27402 php arguments skipped in CGI mode
Submitted: 2004-02-26 06:06 UTC Modified: 2004-02-26 07:15 UTC
From: maddog2k at maddog2k dot net Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.5RC3 OS: FreeBSD 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maddog2k at maddog2k dot net
New email:
PHP Version: OS:

 

 [2004-02-26 06:06 UTC] maddog2k at maddog2k dot net
Description:
------------
When using PHP in CGI-mode, it specifically doesn't parse it's options.

This is useless behaviour, since you can't do anything more then with those options (when looking at security)

The problem is as follows:

Sometimes it is wanted that based on the extension, the php interpreter is called with different options.

For example:

.phps -> #!/usr/local/bin/php -s
.phpq -> #!/usr/local/bin/php -q
         print "Content-type: image/png";

Can't you make an option for people who know exactly what they're doing, to get these options parsed ?? It's then up to the wrapper script to control things...

Thank you :)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-26 07:15 UTC] sniper@php.net
It's not PHP problem to solve.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC