#27402 [Opn->Bgs]: php arguments skipped in CGI mode

From: Date: Thu, 26 Feb 2004 12:15:40 +0000
Subject: #27402 [Opn->Bgs]: php arguments skipped in CGI mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55600@lists.php.net to get a copy of this message
ID: 27402 Updated by: sniper@php.net Reported By: maddog2k at maddog2k dot net -Status: Open +Status: Bogus Bug Type: CGI related Operating System: FreeBSD 5.2 PHP Version: 4.3.5RC3 New Comment: It's not PHP problem to solve. Previous Comments: ------------------------------------------------------------------------ [2004-02-26 06:06:01] 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 :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27402&edit=1

« previous php.bugs (#55600) next »