Bug #74738 [Opn->Csd]: Multiple [PATH=] and [HOST=] sections not properly parsed

From: Date: Mon, 12 Jun 2017 09:30:01 +0000
Subject: Bug #74738 [Opn->Csd]: Multiple [PATH=] and [HOST=] sections not properly parsed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209496@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74738&edit=1 ID: 74738 Updated by: laruence@php.net Reported by: geert at vanwittlaer dot de Summary: Multiple [PATH=] and [HOST=] sections not properly parsed -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Ubuntu 14.04 PHP Version: 7.0.20 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: 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 http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2017-06-11 09:17:12] geert at vanwittlaer dot de Thanks - that's it, obviously. Can't test it myself as do not want to rebuild PHP on my machine. ------------------------------------------------------------------------ [2017-06-10 20:06:04] manuel-php at mausz dot at 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. ------------------------------------------------------------------------ [2017-06-10 13:41:32] geert at vanwittlaer dot de Description: ------------ 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) Test script: --------------- This can be reproduced e.g. by [PATH=/var/www/html/site1] open_basedir = /.../site1] [PATH=/var/www/html/site2] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74738&edit=1

« previous php.bugs (#209496) next »