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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 + 21 = ?
Subscribe to this entry?

 
 [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-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 19:05:53 2022 UTC