From 0ca8dab47df2b99abb631ea7fc56e7d58b977992 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 8 Jun 2007 14:47:45 +0000 Subject: MFH: 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(+) (limited to 'Zend') diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 4e05cec4d7..c559e661e4 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -244,6 +244,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 -- cgit v1.2.1