Bug #17511 Updated: PATH_TRANSLATED variable incorrectly set since PHP 4.0.5

From: Date: Sun, 07 Jul 2002 16:54:16 +0000
Subject: Bug #17511 Updated: PATH_TRANSLATED variable incorrectly set since PHP 4.0.5
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13392@lists.php.net to get a copy of this message
ID: 17511 Updated by: derick@php.net Reported By: schaefer@jobpilot.com -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Linux 2.2/SuSE 6.4 PHP Version: 4.1.2 New Comment: Not a PHP problem, but an Apache one. Derick Previous Comments: ------------------------------------------------------------------------ [2002-06-05 11:38:21] snowgod@snowgod.org I could be wrong, but I would think that it is the job of Apache to set that variable. The CGI documentation I've read says that the job of setting enviromental variables like that when executing a cgi is the responsiblity of the web server. ------------------------------------------------------------------------ [2002-05-29 13:41:19] schaefer@jobpilot.com Hi, I had to generate a new bug report, since a bug in your bug tracking system prevented me from editing the original one. between version 4.0.4 and 4.0.5 the setting of the PATH_TRANSLATED variable changed. In version 4.0.4, the following URL http://www1.jobpilot.de/test.phtml/bla/fasel resulted in the following PATH_TRANSLATED value: /JobsAdverts/OnlineServer/web/de/test.phtml (which is the correct script file name). ever since 4.0.5, the same URL results in the following value: /JobsAdverts/OnlineServer/web/de/bla/fasel which does not look right. According to the documentation, PATH_TRANSLATED is the "Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. " BTW. the documentation should make it clear what is the difference between PATH_TRANSLATED and SCRIPT_FILENAME - from to the current explanation, I don't understand it. BTW we are using Apache 1.3.23. Best Regards, Arno Schaefer ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17511&edit=1

« previous php.bugs (#13392) next »