Bug #68024 [NEW]: INI/ENV settings get prepended instead of appended

From: Date: Tue, 16 Sep 2014 08:51:00 +0000
Subject: Bug #68024 [NEW]: INI/ENV settings get prepended instead of appended
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187544@lists.php.net to get a copy of this message
From: manuel-php at mausz dot at Operating system: PHP version: Irrelevant Package: FPM related Bug Type: Bug Bug description:INI/ENV settings get prepended instead of appended Description: ------------ During parsing the config FPM files FPM prepends new settings instead of appending (or replacing) them. This way it's impossible to override a previously defined setting. e.g. overriding a global setting with a pool specific. The only way this is possible is to define the setting before including global settings, which is somewhat unexpected behavior. Additional this behavior only applies to environment variables and INI settings. Test script: --------------- # cat fpm.d/test.conf [test] prefix = /var/www/$pool user = $pool pm = ondemand env[TMP] = foo env[TMP] = bar Expected result: ---------------- [16-Sep-2014 10:50:10] NOTICE: env[TMP] = foo [16-Sep-2014 10:50:10] NOTICE: env[TMP] = bar Actual result: -------------- [16-Sep-2014 10:50:10] NOTICE: env[TMP] = bar [16-Sep-2014 10:50:10] NOTICE: env[TMP] = foo -- Edit bug report at https://bugs.php.net/bug.php?id=68024&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68024&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68024&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68024&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68024&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68024&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68024&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68024&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68024&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68024&r=support Expected behavior: https://bugs.php.net/fix.php?id=68024&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68024&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68024&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68024&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68024&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68024&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68024&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68024&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68024&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68024&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68024&r=mysqlcfg

« previous php.bugs (#187544) next »