MFH: fix #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set())

This commit is contained in:
Antony Dovgal 2007-06-08 14:47:45 +00:00
parent c8d54ca3fe
commit 0ca8dab47d

View File

@ -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