|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68018 php_value directive modifies "Changeable" context
Submitted: 2014-09-13 19:54 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: manuel-php at mausz dot at Assigned:
Status: Open Package: FPM related
PHP Version: master-Git-2014-09-13 (Git) OS:
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:
20 - 20 = ?
Subscribe to this entry?

 [2014-09-13 19:54 UTC] manuel-php at mausz dot at
Using php_value directives in PHP-FPM modifies the modifiable member of the ini setting. e.g. php_value[enable_dl] = 0 changes modifiable from PHP_INI_SYSTEM to PHP_INI_USER which will allow changing enable_dl using ini_set().

Also fpm_php_zend_ini_alter_master lacks the modifiable check from zend_alter_ini_entry_ex. So it's possible to overwrite a PHP_INI_SYSTEM setting with a php_value directive.

The attached patch fixes both.


master-fpm-ini-modifiable.patch (last revision 2014-09-13 19:54 UTC by manuel-php at mausz dot at)

Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 24 19:03:39 2023 UTC