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

From: Date: Sun, 11 Jun 2017 09:17:19 +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-209475@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:         geert at vanwittlaer dot de
 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:

Thanks - that's it, obviously. Can't test it myself as do not want to rebuild PHP on my
machine.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#209475) next »