Bug #60387 [Asn->Opn]: Problem with php_(admin)?_value/flag and load order
Edit report at https://bugs.php.net/bug.php?id=60387&edit=1
ID: 60387
Updated by: kalle@php.net
Reported by: dbetz at df dot eu
Summary: Problem with php_(admin)?_value/flag and load order
-Status: Assigned
+Status: Open
Type: Bug
Package: FPM related
Operating System: Gentoo Linux
PHP Version: 5.3.8
-Assigned To: fat
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-09-24 20:02:09] manuel-php at mausz dot at
Hello,
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: https://bugs.php.net/bug.php?id=68024
------------------------------------------------------------------------
[2011-11-25 15:10:27] 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.
------------------------------------------------------------------------
[2011-11-25 14:08:59] dbetz at df dot eu
Description:
------------
Hello,
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!
greetings,
daniel
Test script:
---------------
I have used APC as an example.
Following php-fpm.conf:
[default]
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] = "apc.so"
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60387&edit=1
Thread (4 messages)