summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-05-02 17:52:31 +0000
committerZeev Suraski <zeev@php.net>2000-05-02 17:52:31 +0000
commit8ca13c97c2d5daa91dd282cf3c8d490f353373a7 (patch)
treef806405367b80cbd3259cc59d658b5ab0effcce1 /Zend/zend_hash.h
parentf5520fd465ef6d41cbb17ee67cd42bc8b1207ab8 (diff)
downloadphp-git-8ca13c97c2d5daa91dd282cf3c8d490f353373a7.tar.gz
Change zend_hash_get_current_key_ex() to also return the string length
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 2a5ef4035d..16641fa98c 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -141,7 +141,7 @@ ZEND_API ulong zend_hash_next_free_element(HashTable *ht);
/* traversing */
ZEND_API int zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos);
ZEND_API int zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos);
-ZEND_API int zend_hash_get_current_key_ex(HashTable *ht, char **str_index, ulong *num_index, HashPosition *pos);
+ZEND_API int zend_hash_get_current_key_ex(HashTable *ht, char **str_index, ulong *str_length, ulong *num_index, HashPosition *pos);
ZEND_API int zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos);
ZEND_API int zend_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos);
ZEND_API void zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos);
@@ -152,7 +152,7 @@ ZEND_API void zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos
#define zend_hash_move_backwards(ht) \
zend_hash_move_backwards_ex(ht, NULL)
#define zend_hash_get_current_key(ht, str_index, num_index) \
- zend_hash_get_current_key_ex(ht, str_index, num_index, NULL)
+ zend_hash_get_current_key_ex(ht, str_index, NULL, num_index, NULL)
#define zend_hash_get_current_key_type(ht) \
zend_hash_get_current_key_type_ex(ht, NULL)
#define zend_hash_get_current_data(ht, pData) \