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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 11 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 17:01:33 2024 UTC