Edit report at http://bugs.php.net/bug.php?id=44001&edit=1
ID: 44001 User updated by: nicolas dot grekas+php at gmail dot com Reported by: nicolas dot grekas+php at gmail dot com Summary: PATH_INFO with final dot is not correctly set under Windows Status: Closed Type: Bug Package: Apache related Operating System: Windows XP -PHP Version: 5.2.5 +PHP Version: 5.2.11/5.3.1 New Comment: This bug is back, tested on 5.2.11 and 5.3.1 Previous Comments: ------------------------------------------------------------------------ [2008-02-02 22:20:46] j...@php.net Yes, it was fixed apparently. :) ------------------------------------------------------------------------ [2008-02-02 08:10:15] nicolas dot grekas+php at gmail dot com Seems ok to me ------------------------------------------------------------------------ [2008-02-01 22:23:01] j...@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/bug.php?id=44001&edit=1