Bug #68018 [NEW]: php_value directive modifies "Changeable" context
From: manuel-php at mausz dot at
Operating system:
PHP version: master-Git-2014-09-13 (Git)
Package: FPM related
Bug Type: Bug
Bug description:php_value directive modifies "Changeable" context
Description:
------------
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=68018&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68018&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68018&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68018&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68018&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68018&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68018&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68018&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68018&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68018&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68018&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68018&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68018&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68018&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68018&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68018&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68018&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68018&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68018&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68018&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68018&r=mysqlcfg
Thread (1 message)
- manuel-php at mausz dot at