]> granicus.if.org Git - php/commitdiff
- Revert the revert: this is not causing any problems (or we have lot bigger issues...
authorJani Taskinen <jani@php.net>
Fri, 31 Aug 2007 07:52:09 +0000 (07:52 +0000)
committerJani Taskinen <jani@php.net>
Fri, 31 Aug 2007 07:52:09 +0000 (07:52 +0000)
Zend/zend_ini.c

index fd5ea0f74d7e41cbbe5a98a72a32c4bd5884a5e1..86402e663ffc64de3c82d5ae7f9a97e53405eb6a 100644 (file)
@@ -243,6 +243,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;
+       }
+
        if (!(ini_entry->modifiable & modify_type)) {
                return FAILURE;
        }