From: Operating system: Linux PHP version: 5.3.11 Package: FPM related Bug Type: Bug Bug description:user_ini_filename ignored for cached user_config
Description: ------------ I would like to use multiple different user.ini-Files in the same directory to modify some php.ini settings. I'm using Apache with mod_fastcgi, and therefore, as far as I can tell, I can't insert line breaks into variables with setenv, and teherefore I'm limited to at most one PHP_VALUE that I can define per vhost. This would be sufficient to set user_ini.filename to a suitable different file and set any values in there. However, php_cgi_ini_activate_user_config() in sapi/fpm/fpm/fpm_main.c only evaluates the path, not the current value of user_ini_filename when retrieving cached entries. As a result, all requests hitting a given instance within the expiry period will receive the values valid for the user_ini.filename specified in the first request, which may or may not be the same as the one defined for the current request. -- Edit bug report at https://bugs.php.net/bug.php?id=61867&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61867&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61867&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61867&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61867&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61867&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61867&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61867&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61867&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61867&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61867&r=support Expected behavior: https://bugs.php.net/fix.php?id=61867&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61867&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61867&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61867&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61867&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61867&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61867&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61867&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61867&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61867&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61867&r=mysqlcfg