Req #55271 [Fbk->NoF]: open_basedir_include_dir
Edit report at https://bugs.php.net/bug.php?id=55271&edit=1
ID: 55271
Updated by: php-bugs@lists.php.net
Reported by: spamik at yum dot pl
Summary: open_basedir_include_dir
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Safe Mode/open_basedir
PHP Version: 5.3.6
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-05-20 15:27:53] cmb@php.net
Are you aware that openbase_dir can be set to a list of
directories (like PATH)?
------------------------------------------------------------------------
[2011-07-23 09:04:08] spamik at yum dot pl
Description:
------------
I'd like to propose making new php.ini var - open_basedir_include_dir - like
safe_mode_include_dir , which would allow accessing one dir (files only in it)
when open_basedir is set to other dir. Usual aplication of this would be "/tmp".
Since 5.3.x php allows tightening open_basedir. However tempnam() function
(http://www.php.net/manual/pl/function.tempnam.php) does require as first
parameter dir name. It does not take it from any php.ini var. So programmers had
to hardcode in almost every program something like tempnam("/tmp",....
This makes open_basedir tightening useless as /tmp will remain unaccessible so
tempnam() will fails. Solution would be open_basedir_include_dir ...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55271&edit=1
Thread (3 messages)