diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-02-10 15:43:12 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-02-10 15:43:12 +0300 |
commit | 1eb4352143e42784a59b55e0e531a8faecc0033d (patch) | |
tree | 404ae11471af991680685889d292ca120aa76095 /win32/registry.c | |
parent | 4a875e18fdebfe3af530a6c4367d893c1cb811ae (diff) | |
download | php-git-1eb4352143e42784a59b55e0e531a8faecc0033d.tar.gz |
Use new ZEND_HASH_FOREACH_... API.
Diffstat (limited to 'win32/registry.c')
-rw-r--r-- | win32/registry.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/win32/registry.c b/win32/registry.c index 272246420b..3d4496094b 100644 --- a/win32/registry.c +++ b/win32/registry.c @@ -239,21 +239,11 @@ void UpdateIniFromRegistry(char *path) if (pht != NULL) { HashTable *ht = pht; zend_string *index; - zend_ulong num; zval *data; - ZEND_HASH_FOREACH_KEY_VAL(ht, num, index, data) { + ZEND_HASH_FOREACH_STR_KEY_VAL(ht, index, data) { zend_alter_ini_entry(index, Z_STR_P(data), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE); } ZEND_HASH_FOREACH_END(); -/* - for (zend_hash_internal_pointer_reset_ex(ht, &pos); - zend_hash_get_current_data_ex(ht, (void**)&data, &pos) == SUCCESS && - zend_hash_get_current_key_ex(ht, &index, &index_len, &num, 0, &pos) == HASH_KEY_IS_STRING; - zend_hash_move_forward_ex(ht, &pos)) { - zend_alter_ini_entry(index, index_len, Z_STRVAL_PP(data), Z_STRLEN_PP(data), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE); - } - break; -*/ } if (--path_len > 0) { |