ID: 28227
Comment by: pgf at foxharp dot boston dot ma dot us
Reported By: lukem at NetBSD dot org
Status: Assigned
Bug Type: CGI related
Operating System: *
PHP Version: 5CVS, 4CVS (2005-02-04)
Assigned To: fmk
New Comment:
why hasn't this been fixed? is there a real problem with fixing it?
i'm faced with a bug report against the busybox web server that i'd
rather not fix, given that the problem is clearly a php problem.
Previous Comments:
------------------------------------------------------------------------
[2005-07-26 05:24:44] joey at clean dot q7 dot com
it took me many hours of poking around to finally find this page to
figure out why php isn't working under the httpd server provided under
busybox. php is clearly doing the wrong thing with respect to the cgi
specification. SCRIPT_FILENAME is not a standard header and can not be
relied on to function.
------------------------------------------------------------------------
[2005-05-30 18:33:55] masta at yazzy dot org
I ran into this exact same issue with php4-cgi (ver 4.3.11) on FreeBSD
due to the SCRIPT_FILENAME problem. I found two ways to avoid the
non-standard CGI var is to hack the http server used (mini_httpd) or
use LukeM's modifications to php4. Considering that CGI is a standards
based domain, modification of the webserver to support non-standard CGI
variables is not proper, thus the modification to PHP itself is the
solution. I found that the the LukeM modification still allows for
proper execution in apache.
Can somebody in the php team fix this please?
------------------------------------------------------------------------
[2005-02-11 03:04:50] [EMAIL PROTECTED]
The provided patch was not correct, according to Frank. Assigning to
him for now.
------------------------------------------------------------------------
[2004-12-17 03:02:28] lukem at NetBSD dot org
This bug is still present in 4.3.10 as well.
Note that NetBSD's pkgsrc system has been using the patch I provided
for a few months now, and we haven't received any reports of problems
with PHP with that patch when running as a:
* php.so module under Apache
* php CGI under Apache
* php CGI under web servers that don't support the non-standard
SCRIPT_FILENAME
Please consider applying this patch, because without it PHP is useless
as a CGI except under Apache & IIS.
------------------------------------------------------------------------
[2004-12-13 20:33:52] jbardin at hsc dot usf dot edu
Problem still exists in PHP-5.0.2 on SunOS
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/28227
--
Edit this bug report at http://bugs.php.net/?id=28227&edit=1