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] [EMAIL PROTECTED]

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

Reply via email to