#18663 [NEW]: When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root

From: Date: Wed, 31 Jul 2002 12:33:06 +0000
Subject: #18663 [NEW]: When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15659@lists.php.net to get a copy of this message
From: georgeb@intelinet.ro Operating system: RH Linux 7.2 kernel 2.4.9 (rh) PHP version: 4.1.2 PHP Bug Type: Apache related Bug description: When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root 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 bug report at http://bugs.php.net/?id=18663&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18663&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18663&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18663&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18663&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18663&r=support Expected behavior: http://bugs.php.net/fix.php?id=18663&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18663&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18663&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18663&r=globals

« previous php.bugs (#15659) next »