#28109 [Com]: CGI mode: $PHP_SELF incorrect
| From: | bertrand dot lupart at linkeo dot com | Date: | Thu, 22 Apr 2004 16:23:21 +0000 |
| Subject: | #28109 [Com]: CGI mode: $PHP_SELF incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58584@lists.php.net to get a copy of this message | ||
ID: 28109
Comment by: bertrand dot lupart at linkeo dot com
Reported By: bertrand at linkeo dot com
Status: Open
Bug Type: CGI related
Operating System: GNU/Linux Debian
PHP Version: 4.3.4
New Comment:
Tried with 4.3.6, and it seems solved while it isn't mentioned in the
Changelog.
Previous Comments:
------------------------------------------------------------------------
[2004-04-22 17:05:42] bertrand at linkeo dot com
Description:
------------
While used in CGI mode, $PHP_SELF seems not to be set to the correct
value:
_SERVER["PHP_SELF"] => /var/www/vhs-testsuite/bar.tld/foo.php
I also noticed this:
SCRIPT_NAME => /foo.php
_SERVER["SCRIPT_NAME"] => /var/www/vhs-testsuite/bar.tld/foo.php
_ENV["SCRIPT_NAME"] => /foo.php
_SERVER["SCRIPT_NAME"] seems not to follow the environment variables
data.
Bug described
here:http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0302/msg00540.html
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28109&edit=1