Req #55271 [Fbk->NoF]: open_basedir_include_dir

From: Date: Sun, 30 May 2021 04:22:07 +0000
Subject: Req #55271 [Fbk->NoF]: open_basedir_include_dir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234089@lists.php.net to get a copy of this message
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)

« previous php.bugs (#234089) next »