|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60387 Problem with php_(admin)?_value/flag and load order
Submitted: 2011-11-25 14:08 UTC Modified: 2017-10-24 07:43 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: dbetz at df dot eu Assigned:
Status: Open Package: FPM related
PHP Version: 5.3.8 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 - 5 = ?
Subscribe to this entry?

 [2011-11-25 14:08 UTC] dbetz at df dot eu

we are currently testing PHP-FPM on many production domains.
All over 150 domains are working fine and without any problems.
Were using PHP5.3.8 with the ondemand process manager patch.

But i have currently the problem with php_values.

I explain it in an simple example:
The customer can edit its own php.ini file. When editing is done i write all the values/flags to the pool config and reload fpm.

But now, when the user adds settings to an extension before the extension is loaded, the settings get lost.

I cant prohibit customers to randomly insert the settings in php.ini :-(

Hoping you can help!


Test script:
I have used APC as an example.

Following php-fpm.conf:

pm = ondemand
pm.max_children = 40
pm.min_spare_servers = 2
pm.max_spare_servers = 40
pm.process_idle_timeout = 90
pm.max_requests = 500

php_admin_value[apc.ttl] = 600
php_admin_value[extension] = ""
php_admin_value[apc.user_ttl] = 600

start the FPM an have a look into phpinfo()

Expected result:
phpinfo() shows:

apc.ttl	0
apc.user_ttl 600

Actual result:
phpinfo() shows:

apc.ttl	600
apc.user_ttl 600


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-25 15:10 UTC] dbetz at df dot eu
And is there an chance to get "zend_extension" to work with php_admin_value ?
or is this an must to set it directly in the php.ini ?

when starting one newly compiled FPM master process for every pool, just to have different php.ini files with --with-config-file-path isnt an good option.
 [2012-05-22 15:56 UTC]
-Assigned To: +Assigned To: fat
 [2014-09-24 20:02 UTC] manuel-php at mausz dot at

about a week ago I submitted a bug report which is probably a duplicate of yours. I've attached a possible fix for this, so I just want no one to miss that:
 [2017-10-24 07:43 UTC]
-Status: Assigned +Status: Open -Assigned To: fat +Assigned To:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC