#16208 [Csd->Bgs]: open_basedir: does not expand Variables before checking paths

From: Date: Mon, 31 Jan 2005 21:44:12 +0000
Subject: #16208 [Csd->Bgs]: open_basedir: does not expand Variables before checking paths
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73157@lists.php.net to get a copy of this message
 ID:               16208
 Updated by:       sniper@php.net
 Reported By:      php4 at Ncc-1701 dot b dot shuttle dot DE
-Status:           Closed
+Status:           Bogus
 Bug Type:         *Web Server problem
 Operating System: GNU/Linux
 PHP Version:      4.1.2


Previous Comments:
------------------------------------------------------------------------

[2002-03-25 02:49:09] php4 at Ncc-1701 dot b dot shuttle dot DE

Sorry, I forgot that I had to access $DOCUMENT_ROOT as
$_SERVER["DOCUMENT_ROOT"] now.

------------------------------------------------------------------------

[2002-03-21 13:55:47] php4 at Ncc-1701 dot b dot shuttle dot 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


Thread (3 messages)

« previous php.bugs (#73157) next »