|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78286 Feature request: allow files in open_basedir
Submitted: 2019-07-13 20:20 UTC Modified: 2019-08-11 04:22 UTC
From: video dot ice dot power at seznam dot cz Assigned: cmb (profile)
Status: No Feedback Package: Safe Mode/open_basedir
PHP Version: 7.3.7 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: video dot ice dot power at seznam dot cz
New email:
PHP Version: OS:


 [2019-07-13 20:20 UTC] video dot ice dot power at seznam dot cz
Consider the following file tree examples:




In both but not least cases will be very hand if the open_basedir can be set to a specific file instead of owning directory. I.e. instead of './user' specify './src/config.ini' or for the 2nd example './backups/' to allow php to write a specific file (or folder) to a specific location.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-02 15:27 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-08-02 15:27 UTC]
Hmm, this feature request doesn't make sense to me.  What am I
 [2019-08-11 04:22 UTC] php-bugs at lists dot php dot net
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 08:01:29 2024 UTC