ID: 38476
Updated by: tony2001@php.net
Reported By: fietka at rpi dot edu
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Debian Linux
PHP Version: 4.4.3
New Comment:
Duplicate of bug #31892.
Previous Comments:
------------------------------------------------------------------------
[2006-08-16 20:09:39] fietka at rpi dot edu
Description:
------------
In the course of playing with my new Lighty server running on Debian, I
ran into a problem with the PHP_SELF, PATH_INFO, and ORIG_PATH_INFO
variables - specifically, Lighty doesn't provide them to my PHP
install.
Even after applying all the fixes I could find:
Adding "broken-scriptfilename" => "enable" to my PHP config in
lighttpd.conf
Set cgi.fix_pathinfo = 1 in /etc/php4/cgi/php.ini
Compiled PHP4 with ./configure --enable-fastcgi --enable-ftp
--with-mysql --enable-force-redirect --enable-discard-path
Various combinations of these fixes didn't work either (PHP compiled
with and without each/both of the cgi-related switches). I found a
workaround for the KnowledgeTree? DMS:
http://issues.ktdms.com/browse/KTS-1289 and a
Google Answers post I
made generated some good kludges(though neither of them work):
http://google.com/answers/threadview?id=754764
This seems to be a fairly serious Lighty/PHP issue that affects a large
number of people and currently has no resolution. If anyone wants any
further information or wants to contribute ideas on how to fix this,
feel free to e-mail me.
Reproduce code:
---------------
print $_SERVER["PATH_INFO"];
print $_SERVER["PHP_SELF"];
print $_SERVER["ORIG_PATH_INFO"];
Expected result:
----------------
null
null
null
Actual result:
--------------
Given site.com/folder/script.php,
/folder
/folder/script.php
/folder
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38476&edit=1