]> granicus.if.org Git - php/commitdiff
This is meant to be used in for(;has_more;next)
authorMarcus Boerger <helly@php.net>
Sat, 19 Jul 2003 20:04:51 +0000 (20:04 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 19 Jul 2003 20:04:51 +0000 (20:04 +0000)
# Probably the name of such functions should be eol (End-Of-List).

Zend/zend_hash.c

index e91ee2bc27b18ec14ade9833e39ddf49a497f83e..2081bd6ce45e690b4f9f4196932bf28aa5c5fc86 100644 (file)
@@ -1011,7 +1011,7 @@ ZEND_API int zend_hash_has_more_elements_ex(HashTable *ht, HashPosition *pos)
 
        IS_CONSISTENT(ht);
 
-       if (*current && (*current)->pListNext) {
+       if (*current) {
                return SUCCESS;
        } else {
                return FAILURE;