mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-11 19:20:50 +00:00
Merge branch 'PHP-5.6'
* PHP-5.6: fix C89 compat
This commit is contained in:
commit
d374c7703c
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user