note 90838 added to ini.sect.safe-mode
| From: | elapouya at osu1 dot php dot net | Date: | Tue, 12 May 2009 13:34:52 +0000 |
| Subject: | note 90838 added to ini.sect.safe-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154503@lists.php.net to get a copy of this message | ||
The new "tighten" feature of open_basedir for PHP 5.3RC2 does not work if you use
apache/mod_php and reload a page twice or more
(See bug 47945 : http://bugs.php.net/bug.php?id=47945 )
The workaround I found :
add some slashes in the open_basedir path in php.ini :
open_basedir = /home/elapouya///////////////////////
/////////////////////////////////////
AND
add a dummy path in the ini_set before the one you want to be set, because it will be crashed by the
bug :
ini_set("open_basedir",
"/____________________________/:/home/elapouya/perso/www/");
By this way, in this exemple, you can tighten an open_basedir from /home/elapouya to
/home/elapouya/perso/www
----
Server IP: 89.31.146.176
Probable Submitter: 79.92.221.150
----
Manual Page -- http://www.php.net/manual/en/ini.sect.safe-mode.php
Edit -- https://master.php.net/note/edit/90838
Del: integrated -- https://master.php.net/note/delete/90838/integrated
Del: useless -- https://master.php.net/note/delete/90838/useless
Del: bad code -- https://master.php.net/note/delete/90838/bad+code
Del: spam -- https://master.php.net/note/delete/90838/spam
Del: non-english -- https://master.php.net/note/delete/90838/non-english
Del: in docs -- https://master.php.net/note/delete/90838/in+docs
Del: other reasons-- https://master.php.net/note/delete/90838
Reject -- https://master.php.net/note/reject/90838
Search -- https://master.php.net/manage/user-notes.php