From: postmaster at itsacon dot net Operating system: Windows XP Pro 64bit PHP version: 5.2.5 PHP Bug Type: Unknown/Other Function Bug description: $_SERVER['PHP_SELF'] gives incorrect value
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 bug report at http://bugs.php.net/?id=43403&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43403&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43403&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43403&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43403&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43403&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43403&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43403&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43403&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43403&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43403&r=support Expected behavior: http://bugs.php.net/fix.php?id=43403&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43403&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43403&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43403&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43403&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43403&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43403&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43403&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43403&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43403&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43403&r=mysqlcfg