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

From: Date: Sat, 10 Jun 2017 13:41:34 +0000
Subject: Bug #74738 [NEW]: Multiple [PATH=] and [HOST=] sections not properly parsed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209465@lists.php.net to get a copy of this message
From: geert at vanwittlaer dot de Operating system: Ubuntu 14.04 PHP version: 7.0.20 Package: *General Issues Bug Type: Bug Bug description:Multiple [PATH=] and [HOST=] sections not properly parsed 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 bug report at https://bugs.php.net/bug.php?id=74738&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74738&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74738&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74738&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74738&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74738&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74738&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74738&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74738&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74738&r=support Expected behavior: https://bugs.php.net/fix.php?id=74738&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74738&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74738&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74738&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74738&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74738&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74738&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74738&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74738&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74738&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74738&r=mysqlcfg

« previous php.bugs (#209465) next »