ID:               38476
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fietka at rpi dot edu
-Status:           Open
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Debian Linux
 PHP Version:      4.4.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2006-08-16 23:38:59] fietka at rpi dot edu

Actually, bug 31892 is slightly different (only 1 of the 3 variables
I'm missing is missing in that bug). Also, the solutions, diffs, and
patches cited in that bug are long outdated, making that report
irrelevant.

------------------------------------------------------------------------

[2006-08-16 23:15:14] [EMAIL PROTECTED]

Duplicate of bug #31892.

------------------------------------------------------------------------

[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

Reply via email to