Bug #17511 Updated: PATH_TRANSLATED variable incorrectly set since PHP 4.0.5
| From: | snowgod at snowgod dot org | Date: | Wed, 05 Jun 2002 15:38:21 +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-9556@lists.php.net to get a copy of this message | ||
ID: 17511
Updated by: snowgod@snowgod.org
Reported By: schaefer@jobpilot.com
Status: Open
Bug Type: Variables related
Operating System: Linux 2.2/SuSE 6.4
PHP Version: 4.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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