#47385 [Opn->Fbk]: PHP as thttpd module: $_SERVER["PATH_INFO"] is always '/'
| From: | jani@php.net | Date: | Thu, 19 Feb 2009 21:46:50 +0000 |
| Subject: | #47385 [Opn->Fbk]: PHP as thttpd module: $_SERVER["PATH_INFO"] is always '/' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134012@lists.php.net to get a copy of this message | ||
ID: 47385
Updated by: jani@php.net
Reported By: ivan_ma at telecable dot es
-Status: Open
+Status: Feedback
Bug Type: Other web server
Operating System: GNU/Linux
PHP Version: 5.3.0beta1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-02-14 12:02:21] ivan_ma at telecable dot es
Description:
------------
There is a problem with $_SERVER["PATH_INFO"] using PHP as a thttpd
SAPI module, it is always "/"
URL: http://dreambox:81/foro/info.php
_SERVER["PHP_SELF"] /foro/info.php
_SERVER["REQUEST_URI"] /foro/info.php
_SERVER["PATH_TRANSLATED"] /hdd/www/foro/info.php
_SERVER["SCRIPT_NAME"] /foro/info.php
_SERVER["PATH_INFO"] /
Reproduce code:
---------------
<?php
print($_SERVER['PATH_INFO']);
?>
Expected result:
----------------
A correct PATH_INFO
Actual result:
--------------
PATH_INFO is set to "/" always.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47385&edit=1