Req #78286 [NEW]: Feature request: allow files in open_basedir
| From: | video dot ice dot power at seznam dot cz | Date: | Sat, 13 Jul 2019 20:20:54 +0000 |
| Subject: | Req #78286 [NEW]: Feature request: allow files in open_basedir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221762@lists.php.net to get a copy of this message | ||
From: video dot ice dot power at seznam dot cz
Operating system: Any
PHP version: 7.3.7
Package: Safe Mode/open_basedir
Bug Type: Feature/Change Request
Bug description:Feature request: allow files in open_basedir
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:
---------------
--
Edit bug report at https://bugs.php.net/bug.php?id=78286&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78286&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78286&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78286&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78286&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78286&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78286&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78286&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78286&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78286&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78286&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78286&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78286&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78286&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78286&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78286&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78286&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78286&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78286&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78286&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78286&r=mysqlcfg