#43403 [Opn->Fbk]: $_SERVER['PHP_SELF'] gives incorrect value
| From: | jani@php.net | Date: | Mon, 26 Nov 2007 09:45:12 +0000 |
| Subject: | #43403 [Opn->Fbk]: $_SERVER['PHP_SELF'] gives incorrect value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120061@lists.php.net to get a copy of this message | ||
ID: 43403
Updated by: jani@php.net
Reported By: postmaster at itsacon dot net
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Windows XP Pro 64bit
PHP Version: 5.2.5
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-11-25 22:28:29] postmaster at itsacon dot net
Description:
------------
In directories below document root, PHP_SELF returns an incorrect value
(path repeated at end of string)
Reproduce code:
---------------
/* Place this code in a SUBDIRECTORY (such as
localhost/testdir/test.php */
<?php
echo $_SERVER['PHP_SELF'];
?>
/* or see http://www2.bijscharp.nl/bugdemo/winxp64_php_self.php
(script contains code above)
For info on server, see http://www2.bijscharp.nl/bugdemo/phpinfo.php
*/
Expected result:
----------------
The result should be:
/bugdemo/winxp64_php_self.php
Actual result:
--------------
The result is:
bugdemo/winxp64_php_self.php/bugdemo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43403&edit=1