From:             [EMAIL PROTECTED]
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

Reply via email to