go to bug id or search bugs for
With multiple [PATH=] or [HOST=] sections within a .ini file, it looks that just the content of the final section is applied for all sections.
Using the latest stable distribution of PHP 7.0.20 for Ubuntu 14.04
PHP 7.0.20-1~ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jun 9 2017 08:27:48) ( NTS )
with apache2, php-fpm and FastCGI (latest stables)
This can be reproduced e.g. by
open_basedir = /.../site1]
open_basedir = /.../site2]
Attempting to run a script of site1 in the web browser results in an open_basedir not allowed error, because open_basedir is set to /.../site2
Add a Patch
Add a Pull Request
That's because in 7.0.20/7.1.6 they get completely ignored. See https://github.com/php/php-src/pull/2570 for a possible fix.
Thanks - that's it, obviously. Can't test it myself as do not want to rebuild PHP on my machine.
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
Related To: Bug #74755
Related To: Bug #74757
Related To: Bug #74846