php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47385 PHP as thttpd module: $_SERVER["PATH_INFO"] is always '/'
Submitted: 2009-02-14 12:02 UTC Modified: 2009-02-27 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ivan_ma at telecable dot es Assigned:
Status: No Feedback Package: Other web server
PHP Version: 5.3.0beta1 OS: GNU/Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-02-14 12:02 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-19 21:46 UTC] jani@php.net
Please try using this CVS snapshot:

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

  http://windows.php.net/snapshots/


 [2009-02-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC