PHP 4.0 Bug #6491: $PHP_SELF evaluates to improper address if directory name ends with ".php"

From: Date: Fri, 01 Sep 2000 19:28:31 +0000
Subject: PHP 4.0 Bug #6491: $PHP_SELF evaluates to improper address if directory name ends with ".php"
Groups: php.dev 
Request: Send a blank email to php-dev+get-31618@lists.php.net to get a copy of this message
From: fseesink@usa.net Operating system: MS Windows NT 4 SP5/IIS4 PHP version: 4.0.2 PHP Bug Type: Scripting Engine problem Bug description: $PHP_SELF evaluates to improper address if directory name ends with ".php" Place the following simple file (called version.php for this example): <? php_info(); ?> in your website such that it is contained somewhere within the subtree of a directory whose name ends with ".php". For example, on my box I had the file located at http://site/php/secure.php/version.php If you then look at the value of $PHP_SELF it is /php/secure.php/php/secure.php/version.php and NOT /php/secure.php/version.php as it should be. I've tried using other directory names such as "secure.ppp", "secure.txt", and "secure.html" and those seem to work fine. It only occurs when a directory name ends with ".php". Possibly a bad regular expression used to parse the path?

« previous php.dev (#31618) next »