diff options
author | Zeev Suraski <zeev@php.net> | 2000-12-22 12:49:51 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-12-22 12:49:51 +0000 |
commit | 36eaad252fc5fe292cd4f071f76e7879ce21130c (patch) | |
tree | 5b5f4c0f06122a3ac45c6414f3ab1d778027cc9c /Zend/zend.c | |
parent | 0fcce4a77a4783bb2366d562d957da5a9249134f (diff) | |
download | php-git-36eaad252fc5fe292cd4f071f76e7879ce21130c.tar.gz |
Allow get_current_key() not to return the key itself, instead of a duplicate
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index af2631ea5e..ad5c981547 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -94,10 +94,9 @@ static void print_hash(HashTable *ht, int indent) ZEND_PUTS(" "); } ZEND_PUTS("["); - switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, &iterator)) { + switch (zend_hash_get_current_key_ex(ht, &string_key, &str_len, &num_key, 0, &iterator)) { case HASH_KEY_IS_STRING: ZEND_PUTS(string_key); - efree(string_key); break; case HASH_KEY_IS_LONG: zend_printf("%ld",num_key); |