Bug #74755 [Com]: Host based open_basedir setting broke in 7.0.20 and 7.1.6

From: Date: Tue, 13 Jun 2017 21:13:57 +0000
Subject: Bug #74755 [Com]: Host based open_basedir setting broke in 7.0.20 and 7.1.6
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209526@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74755&edit=1 ID: 74755 Comment by: spam2 at rhsoft dot net Reported by: joshin at hotmail dot com Summary: Host based open_basedir setting broke in 7.0.20 and 7.1.6 Status: Open Type: Bug Package: *Configuration Issues Operating System: Linux PHP Version: 7.1.6 Block user comment: N Private report: N New Comment: no idea why you did file it for not related "PHP Version: 7.1.6 but the issue is known and already fixed -> https://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.1 PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2017, PHP 7.1.7 - Core: . Fixed bug #74738 (Multiple [PATH=] and [HOST=] sections not properly parsed). (Manuel Mausz) . Fixed bug #74658 (Undefined constants in array properties result in broken properties). (Laruence) . Fixed misparsing of abstract unix domain socket names. (Sara) Previous Comments: ------------------------------------------------------------------------ [2017-06-13 19:03:55] joshin at hotmail dot com Description: ------------ In previous versions of 7.0 & 7.1 I could use an ext file like the paste in the "test script" area to limit access to files by the HOST variable sent to PHP FPM. With 7.0.20 and 7.1.6, the behavior changed. Now, the HOST setting appears to be ignored, and the last open_basedir variable labeled in the file (site3.com's) gets set. This results in errors for "site1.com" and "site2.com". Test script: --------------- [HOST = site1.com] open_basedir = /home/www/whphx16/site1.com:/tmp:/home/www/phpmyadmin:/home/www/adminer [HOST = site2.com] open_basedir = /home/www/whphx16/site2.com:/tmp:/home/www/phpmyadmin:/home/www/adminer [HOST = site3.com] open_basedir = /home/www/whphx16/site3.com:/tmp:/home/www/phpmyadmin:/home/www/adminer Expected result: ---------------- I expect each site to have a custom setting for open_basedir Actual result: -------------- All sites get the last entry's setting for open_basedir ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74755&edit=1

« previous php.bugs (#209526) next »