From: maddog2k at maddog2k dot net
Operating system: FreeBSD 5.2
PHP version: 4.3.5RC3
PHP Bug Type: CGI related
Bug description: php arguments skipped in CGI mode
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 :)
--
Edit bug report at http://bugs.php.net/?id=27402&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27402&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27402&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27402&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27402&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27402&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27402&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27402&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27402&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27402&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27402&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27402&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27402&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27402&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27402&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27402&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27402&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27402&r=float