#28109 [Opn->Csd]: CGI mode: $PHP_SELF incorrect

From: Date: Thu, 22 Apr 2004 16:35:31 +0000
Subject: #28109 [Opn->Csd]: CGI mode: $PHP_SELF incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58586@lists.php.net to get a copy of this message
ID: 28109 Updated by: iliaa@php.net Reported By: bertrand at linkeo dot com -Status: Open +Status: Closed Bug Type: CGI related Operating System: GNU/Linux Debian PHP Version: 4.3.4 New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Previous Comments: ------------------------------------------------------------------------ [2004-04-22 18:23:20] bertrand dot lupart at linkeo dot com Tried with 4.3.6, and it seems solved while it isn't mentioned in the Changelog. ------------------------------------------------------------------------ [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

« previous php.bugs (#58586) next »