Your message dated Mon, 28 Jul 2008 17:13:31 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: [php-maint] Bug#492739: $_SERVER['PATH_TRANSLATED'] does
not more work
has caused the Debian Bug report #492739,
regarding $_SERVER['PATH_TRANSLATED'] does not more work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
492739: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492739
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: php5
Version: 5.2.0-8+etch10
Severity: important
Hello Maintainer,
while under Sarge with php4 $_SERVER['PATH_TRANSLATED'] was working
properly and also under php5 on the Gentoo VHost of my ISP, but it does
not work on my recently installed Etch Server @home.
My whole site with all its nearly 200 VHosts is ONLY a singel /index.php
and the contents is generated based on $_SERVER['SERVER_NAME'] but since
I need the physical path, my website is entirely broken.
Note: The path to the /index.php is
/var/www/customers/konzack/sites/index.php
and $_SERVER['PATH_TRANSLATED'] returns "/" which is wrong.
Please can you look at it?
The code sniplet from the beginning of the /index.php is:
----[ '/var/www/customers/konzack/sites/index.php' ]--------------------
<?php
$MY_PATH=dirname(dirname($_SERVER["PATH_TRANSLATED"]));
$MY_CONFIG="$MY_PATH/HOST_" . $_SERVER["HTTP_HOST"];
if ( is_file($MY_CONFIG) ) {
include $MY_CONFIG;
} else {
header("Content-Type: text/plain");
die("Config for host \"$_SERVER[HTTP_HOST]\" not found.\n($MY_CONFIG)");
}
<snip>
------------------------------------------------------------------------
And currently I have hardcoded the $MY_PATH which is not the optimal
solution since it can be forgotten.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature
--- End Message ---
--- Begin Message ---
On Monday 28 July 2008 09:53, Michelle Konzack wrote:
> Package: php5
> Version: 5.2.0-8+etch10
> Severity: important
>
> Hello Maintainer,
>
> while under Sarge with php4 $_SERVER['PATH_TRANSLATED'] was working
> properly and also under php5 on the Gentoo VHost of my ISP, but it does
> not work on my recently installed Etch Server @home.
Thank you for reporting, but I'm afraid that this is not a bug.
It's even documented near the top of the PHP5 migration manual's list of
incompatible changes:
| * PATH_TRANSLATED server variable is no longer set implicitly under Apache2
| SAPI in contrast to the situation in PHP 4, where it is set to the same
| value as the SCRIPT_FILENAME server variable when it is not populated by
| Apache. This change was made to comply with the » CGI specification. Please
| refer to » bug #23610 for further information, and see also the
| $_SERVER['PATH_TRANSLATED'] description in the manual. This issue also
| affects PHP versions >= 4.3.2.
> My whole site with all its nearly 200 VHosts is ONLY a singel /index.php
> and the contents is generated based on $_SERVER['SERVER_NAME'] but since
> I need the physical path, my website is entirely broken.
Use $_SERVER['SCRIPT_NAME']
cheers,
Thijs
pgpBbLxx5EdGL.pgp
Description: PGP signature
--- End Message ---