php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
Description:
------------
Consider the following file tree examples:

./user
./user/ssh.key
./user/ssh.pub
./src/config.ini

or 

./backups/
./backups/jan-2018.zip
./backups/feb-2018.zip

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/jul-2018.zip' to allow php to write a specific file (or folder) to a specific location.

Test script:
---------------




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-02 15:27 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-08-02 15:27 UTC] cmb@php.net
Hmm, this feature request doesn't make sense to me.  What am I
missing?
 [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-2019 The PHP Group
All rights reserved.
Last updated: Sun Aug 18 10:01:27 2019 UTC