Bug #16208: open_basedir: does not expand Variables before checking paths
| From: | php4 at Ncc-1701 dot b dot shuttle dot DE | Date: | Thu, 21 Mar 2002 18:55:48 +0000 |
| Subject: | Bug #16208: open_basedir: does not expand Variables before checking paths | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3075@lists.php.net to get a copy of this message | ||
From: php4@Ncc-1701.b.shuttle.DE
Operating system: GNU/Linux
PHP version: 4.1.2
PHP Bug Type: *Web Server problem
Bug description: open_basedir: does not expand Variables before checking paths
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 bug report at http://bugs.php.net/?id=16208&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16208&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16208&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16208&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16208&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16208&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16208&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16208&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16208&r=submittedtwice