Bug #74738 [Com]: Multiple [PATH=] and [HOST=] sections not properly parsed

From: Date: Sat, 10 Jun 2017 20:06:05 +0000
Subject: Bug #74738 [Com]: Multiple [PATH=] and [HOST=] sections not properly parsed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209468@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 Comment by: manuel-php at mausz dot at Reported by: geert at vanwittlaer dot de Summary: Multiple [PATH=] and [HOST=] sections not properly parsed Status: Open Type: Bug Package: *General Issues Operating System: Ubuntu 14.04 PHP Version: 7.0.20 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#209468) next »