Bug #60387 [NEW]: Problem with php_(admin)?_value/flag and load order
| From: | dbetz at df dot eu | Date: | Fri, 25 Nov 2011 14:08:59 +0000 |
| Subject: | Bug #60387 [NEW]: Problem with php_(admin)?_value/flag and load order | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-165498@lists.php.net to get a copy of this message | ||
From:
Operating system: Gentoo Linux
PHP version: 5.3.8
Package: FPM related
Bug Type: Bug
Bug description:Problem with php_(admin)?_value/flag and load order
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 bug report at https://bugs.php.net/bug.php?id=60387&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60387&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60387&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60387&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60387&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60387&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60387&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60387&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60387&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60387&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60387&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60387&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60387&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60387&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60387&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60387&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60387&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60387&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60387&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60387&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60387&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60387&r=mysqlcfg