PHP 4.0 Bug #4788: $PHP_SELF value incorrect when URL omits index.php part
| From: | anj at aps dot anl dot gov | Date: | Fri, 02 Jun 2000 20:16:10 +0000 |
| Subject: | PHP 4.0 Bug #4788: $PHP_SELF value incorrect when URL omits index.php part | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20096@lists.php.net to get a copy of this message | ||
From: anj@aps.anl.gov
Operating system: Solaris 2.6 sparc
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Scripting Engine problem
Bug description: $PHP_SELF value incorrect when URL omits index.php part
Our server (Netscape Enterprise 3.0) and PHP are set up to serve the index.php file if only a
directory name is specified in a URL. When this facility is used, the $PHP_SELF variable contains
the directory part doubled. Eg, the URL http://www.aps.anl.gov/~anj/test/ results in $PHP_SELF
= /~anj/test//~anj/test/index.php whereas the URL http://www.aps.anl.gov/~anj/test/index.php
returns the correct string. The PATH_INFO variable is correct though, so I use that as a workaround
although that may not be correct in all situations. The above URLs currently display the relevent
variables and phpinfo().