From: Marcus Boerger Date: Sat, 19 Jul 2003 20:04:51 +0000 (+0000) Subject: This is meant to be used in for(;has_more;next) X-Git-Tag: BEFORE_ARG_INFO~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9556c6c27e5388ce36707065476549ebc181cd5d;p=php This is meant to be used in for(;has_more;next) # Probably the name of such functions should be eol (End-Of-List). --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index e91ee2bc27..2081bd6ce4 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -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;