ID: 43403 Updated by: [EMAIL PROTECTED] Reported By: postmaster at itsacon dot net -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows XP Pro 64bit PHP Version: 5.2.5 New Comment:
What SAPI are you using? CGI or something else? Previous Comments: ------------------------------------------------------------------------ [2007-11-26 11:19:32] postmaster at itsacon dot net Upgrading to latest CVS snapshow (5.2.6-dev) does NOT solve the problem. See scripts in bug report, path is still repeated at end of PHP_SELF value. ------------------------------------------------------------------------ [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