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
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: 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

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: Fri Apr 26 14:01:29 2024 UTC