Skip to content

Commit 416fa87

Browse files
committed
Update comment
1 parent 0f86f73 commit 416fa87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/dom/dom_iterators.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ static void php_dom_iterator_move_forward(zend_object_iterator *iter) /* {{{ */
210210
curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->ptr)->node;
211211
curnode = curnode->next;
212212
} else {
213-
/* Nav the tree evey time as this is LIVE */
213+
/* The collection is live, we nav the tree from the base object if we cannot
214+
* use the cache to restart from the last point. */
214215
basenode = dom_object_get_node(objmap->baseobj);
215216
if (php_dom_is_cache_tag_stale_from_node(&iterator->cache_tag, basenode)) {
216217
if (basenode && (basenode->type == XML_DOCUMENT_NODE ||

0 commit comments

Comments
 (0)