Edit report at https://bugs.php.net/bug.php?id=61867&edit=1
ID: 61867 User updated by: rainer-phpbugs at 7val dot com Reported by: rainer-phpbugs at 7val dot com Summary: user_ini_filename ignored for cached user_config Status: Open Type: Bug Package: FPM related Operating System: Linux PHP Version: 5.3.11 Block user comment: N Private report: N New Comment: Another related issue is that PHP_VALUES passed via the fcgi-interface are also cached. If I set e.g. memory_limit to a different Value than the one specified in php.ini in one vhost via PHP_VALUE, the next request for an entirely different vhost that just happens to be processed by the same php-fpm child will receive this non-default value. Previous Comments: ------------------------------------------------------------------------ [2012-04-27 16:41:00] rainer-phpbugs at 7val dot com 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 this bug report at https://bugs.php.net/bug.php?id=61867&edit=1