Bug #16208 Updated: open_basedir: does not expand Variables before checking paths
| From: | php4 at Ncc-1701 dot b dot shuttle dot DE | Date: | Mon, 25 Mar 2002 07:49:10 +0000 |
| Subject: | Bug #16208 Updated: open_basedir: does not expand Variables before checking paths | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3258@lists.php.net to get a copy of this message | ||
ID: 16208
Updated by: php4@Ncc-1701.b.shuttle.DE
Reported By: php4@Ncc-1701.b.shuttle.DE
-Status: Open
+Status: Closed
Bug Type: *Web Server problem
Operating System: GNU/Linux
PHP Version: 4.1.2
New Comment:
Sorry, I forgot that I had to access $DOCUMENT_ROOT as
$_SERVER["DOCUMENT_ROOT"] now.
Previous Comments:
------------------------------------------------------------------------
[2002-03-21 13:55:47] php4@Ncc-1701.b.shuttle.DE
Constructs like
<? require "$DOCUMENT_ROOT/head.php";?>
will cause a bogus error
"PHP Warning: open_basedir restriction in effect. File is in wrong
directory in [...]"
replacing $DOCUMENT_ROOT with the actual directory name works fine but
is braindamaged to use.
BTW this may also apply to other options like safe_mode_exec_dir.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16208&edit=1