php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dbetz at df dot eu
New email:
PHP Version: OS:

 

 [2011-11-25 14:08 UTC] 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

Patches

Pull Requests

History

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] fat@php.net
-Assigned To: +Assigned To: fat
 [2014-09-24 20:02 UTC] 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
 [2017-10-24 07:43 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: fat +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC