summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-03-22 10:44:01 +0100
committerAnatol Belski <ab@php.net>2014-03-22 10:44:01 +0100
commit9d4001f1c8502d0217417c859b59b771e38ed487 (patch)
tree134550e21ed911e3c0ddf333e61f5dc9e8593662 /Zend/zend_hash.c
parent61103cc25c6df153eccbdc0e1baa6493d07660dc (diff)
downloadphp-git-9d4001f1c8502d0217417c859b59b771e38ed487.tar.gz
fix C89 compat
Diffstat (limited to 'Zend/zend_hash.c')
-rw-r--r--Zend/zend_hash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index 135d3c3fa3..f419e8a571 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -663,13 +663,15 @@ ZEND_API void zend_hash_apply_with_arguments(HashTable *ht TSRMLS_DC, apply_func
p = ht->pListHead;
while (p != NULL) {
int result;
+ Bucket *p_next;
+
va_start(args, num_args);
hash_key.arKey = p->arKey;
hash_key.nKeyLength = p->nKeyLength;
hash_key.h = p->h;
result = apply_func(p->pData TSRMLS_CC, num_args, args, &hash_key);
- Bucket *p_next = p->pListNext;
+ p_next = p->pListNext;
if (result & ZEND_HASH_APPLY_REMOVE) {
zend_hash_bucket_delete(ht, p);
}