#44001 [Fbk->Opn]: PATH_INFO with final dot is not correctly set under Windows
| From: | nicolas dot grekas+php at gmail dot com | Date: | Sat, 02 Feb 2008 08:10:15 +0000 |
| Subject: | #44001 [Fbk->Opn]: PATH_INFO with final dot is not correctly set under Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121897@lists.php.net to get a copy of this message | ||
ID: 44001
User updated by: nicolas dot grekas+php at gmail dot com
Reported By: nicolas dot grekas+php at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Apache related
Operating System: Windows XP
PHP Version: 5.2.5
New Comment:
Seems ok to me
Previous Comments:
------------------------------------------------------------------------
[2008-02-01 22:23:01] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-01-31 16:51:13] nicolas dot grekas+php at gmail dot com
Description:
------------
This bug seems to be Windows only (tested under linux, it's ok)
Compare the output of :
http://doc.espci.org/path_info_bug.php/foo
http://doc.espci.org/path_info_bug.php/foo.
(with final dot)
In the second case PATH_INFO, SCRIPT_NAME and PATH_TRANSLATED are not
correctly set. This bug seems specific to windows and a final dot in
path_info.
Reproduce code:
---------------
See http://doc.espci.org/path_info_bug.php/foo.
(the final dot is important)
<?php
echo 'PATH_INFO: ', htmlspecialchars($_SERVER['PATH_INFO']),
'<br>';
echo 'SCRIPT_NAME: ', htmlspecialchars($_SERVER['SCRIPT_NAME']),
'<br>';
echo 'PATH_TRANSLATED: ',
htmlspecialchars($_SERVER['PATH_TRANSLATED']), '<br>';
Expected result:
----------------
PATH_INFO: /foo.
SCRIPT_NAME: /path_info_bug.php
PATH_TRANSLATED: C:\wamp\www\foo.
Actual result:
--------------
PATH_INFO: /foo
SCRIPT_NAME: /path_info_bug.php/foo.
PATH_TRANSLATED: C:\wamp\www\foo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44001&edit=1