From 1da8a5eba7f3f0a27b2ca427ad6162c82d3e87cc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 8 Jun 2007 14:47:32 +0000 Subject: [PATCH] fix #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set()) --- Zend/zend_ini.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index c4915d6cd6..57845d3789 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -245,6 +245,10 @@ ZEND_API int zend_alter_ini_entry(char *name, uint name_length, char *new_value, return FAILURE; } + if (stage == ZEND_INI_STAGE_ACTIVATE && modify_type == ZEND_INI_SYSTEM) { + ini_entry->modifiable = ZEND_INI_SYSTEM; + } + duplicate = estrndup(new_value, new_value_length); if (!ini_entry->on_modify -- 2.40.0