#18942 [WFx->Csd]: $PHP_SELF is set to HTTP_SERVER_VARS[PATH_INFO] if available

From: Date: Tue, 03 Dec 2002 07:33:33 +0000
Subject: #18942 [WFx->Csd]: $PHP_SELF is set to HTTP_SERVER_VARS[PATH_INFO] if available
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26469@lists.php.net to get a copy of this message
ID: 18942 Updated by: shane@php.net Reported By: six@aegis-corp.org -Status: Won't fix +Status: Closed Bug Type: Other web server Operating System: Debian PHP Version: 4.2.2 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. It's fixed in cvs as of today. Previous Comments: ------------------------------------------------------------------------ [2002-08-17 10:01:52] kalowsky@php.net The manual states why this shouldn't used, and the fact that it's populated at all is interesting. ------------------------------------------------------------------------ [2002-08-17 09:41:56] six@aegis-corp.org I believe it should be fixed ... Or at least the apache SAPI should be modified too. With the current code, PATH_INFO has different meanings (and values) in the Apache and CGI SAPIs, not good at all for applications portability IMHO. ------------------------------------------------------------------------ [2002-08-17 00:58:09] kalowsky@php.net I believe this is a documented issue, and won't be fixed. ------------------------------------------------------------------------ [2002-08-16 15:56:02] six@aegis-corp.org There is a very fast way of testing, create a script called phpinfo.php with juste <?phpinfo()?> in it. Then call it like http://yourserver.com/phpinfo.php/this/is/a/test if the two images (zend and php logos) are broken, then $PHP_SELF is not set as it should be. again, this problem only happens with the CGI sapi ------------------------------------------------------------------------ [2002-08-16 15:44:07] kalowsky@php.net Okay can we have a sample script just to ensure that we may or may not have fixed your issue? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18942 -- Edit this bug report at http://bugs.php.net/?id=18942&edit=1

« previous php.bugs (#26469) next »