Bug #15001: PHP_SELF set incorrectly when there is extra path info
| From: | long at kestrel dot cc dot ku dot edu | Date: | Fri, 11 Jan 2002 19:26:11 +0000 |
| Subject: | Bug #15001: PHP_SELF set incorrectly when there is extra path info | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76677@lists.php.net to get a copy of this message | ||
From: long@kestrel.cc.ku.edu
Operating system: Compaq Tru64 4.0F PK3
PHP version: 4.0.6
PHP Bug Type: Variables related
Bug description: PHP_SELF set incorrectly when there is extra path info
The PHP_SELF variable is not set correctly when extra path info is appended
to the URL requested.
Example:
http://www.ku.edu/cgi-bin/phpself.php
shows the correct PHP_SELF variable
while:
http://www.ku.edu/cgi-bin/phpself.php/extra/path/info
shows an incorrect PHP_SELF value.
The contents of phpself.php are:
#!/usr/local/bin/php
<html>
<head>
<title>PHP_SELF test</title>
</head>
<body>
<p>
<?php
echo $PHP_SELF;
?>
</body>
</html>
This php was configured using:
./configure --with-openssl --enable-bcmath --with-ndbm --with-dbm
--enable-dbase --enable-filepro --enable-ftp --enable-gd-imgstrttf
--with-gd --with-ttf --with-java=/usr/opt/java130
--with-ldap=/usr/local/ldap --with-mysql=/usr/local/mysql --with-oci8
--with-oracle --enable-shmop --enable-sockets --enable-sysvsem
--enable-sysvshm --enable-wddx --enable-memory-limit --enable-dba=shared
--enable-calendar --enable-exif --with-msql --enable-discard-path
--
Edit bug report at: http://bugs.php.net/?id=15001&edit=1