#18663 [Opn->Bgs]: When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root
| From: | sniper@php.net | Date: | Wed, 31 Jul 2002 22:24:42 +0000 |
| Subject: | #18663 [Opn->Bgs]: When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15724@lists.php.net to get a copy of this message | ||
ID: 18663
Updated by: sniper@php.net
Reported By: georgeb@intelinet.ro
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: RH Linux 7.2 kernel 2.4.9 (rh)
PHP Version: 4.1.2
New Comment:
PHP shows what apache tells it the DOCUMENT_ROOT should be..
Not PHP bug, report this to Apache folks.
(Or just do what everybody else is doing and use DocumentRoot in your
virtualhosts and not that quite uncommon VirtualDocumentRoot
directive...)
Previous Comments:
------------------------------------------------------------------------
[2002-07-31 08:33:05] georgeb@intelinet.ro
Apache 1.3.22-6 (Red Hat 7.2 RPM)
When using name-based virtual hosting and VirtualDocumentRoot,
$DOCUMENT_ROOT contains the global DocumentRoot (the one configured in
the default virtual host). Is this expected behaviour?
Afterall, assert(strcmp($DOCUMENT_ROOT.$PHP_SELF,$SCRIPT_FILENAME)==0)
sould not fail under any circumstances, should it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18663&edit=1