PHP 4.0 Bug #7842: doc_root setting behavior is wrong
| From: | jim at perigee dot net | Date: | Thu, 16 Nov 2000 15:15:38 +0000 |
| Subject: | PHP 4.0 Bug #7842: doc_root setting behavior is wrong | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38342@lists.php.net to get a copy of this message | ||
From: jim@perigee.net
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: PHP options/info functions
Bug description: doc_root setting behavior is wrong
doc_root string - PHP's "root directory" on the server. If PHP is configured with
safe mode, no files outside this directory are served.
--
Why does php 4 handle this so differently than 3 did, especially when it comes to referencing file
locations like when including files?
I have had to resort to using either "../" or $HTTP_SERVER_VARS['DOCUMENT_ROOT']
to access included files in PHP4 when before I used to be able to use /name.php notation to
absolutely refer to the include files within the web site doc_root directory. We are running PHP in
SAFE MODE.
I think this may just be an oversight, but, if not, I would love an explanation of the rationale.
--
Edit Bug report at: http://bugs.php.net/?id=7842&edit=1