diff options
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 5703d1fc0d..9c16aa327d 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -782,16 +782,11 @@ PHPAPI void php_ini_activate_config(HashTable *source_hash, int modify_type, int { zend_string *str; zval *data; - zend_ulong num_index; /* Walk through config hash and alter matching ini entries using the values found in the hash */ - for (zend_hash_internal_pointer_reset(source_hash); - zend_hash_get_current_key(source_hash, &str, &num_index) == HASH_KEY_IS_STRING; - zend_hash_move_forward(source_hash) - ) { - data = zend_hash_get_current_data(source_hash); + ZEND_HASH_FOREACH_STR_KEY_VAL(source_hash, str, data) { zend_alter_ini_entry_ex(str, Z_STR_P(data), modify_type, stage, 0); - } + } ZEND_HASH_FOREACH_END(); } /* }}} */ |