note 85837 rejected from reserved.variables.server by danbrown

From: Date: Fri, 19 Sep 2008 21:05:12 +0000
Subject: note 85837 rejected from reserved.variables.server by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144560@lists.php.net to get a copy of this message
Note Submitter: office at kitsoftware dot ro ---- There's a weird incompatibility in PHP 5.2.6 (pl Gentoo) between $_SERVER['DOCUMENT_ROOT'] on Windows and Linux. On Windows: <code>echo $_SERVER['DOCUMENT_ROOT']; # D:/some/folder/with/last/slash/</code> On Linux: <code>echo $_SERVER['DOCUMENT_ROOT']; # /some/folder/no/slash</code> So, on Linux, the final slash is NOT appended to the DOCUMENT_ROOT, while on Windows, it is. By default I think it should not be appended (the Linux case). Is this a bug? or a feature?

« previous php.notes (#144560) next »