We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f86f73 commit 416fa87Copy full SHA for 416fa87
ext/dom/dom_iterators.c
@@ -210,7 +210,8 @@ static void php_dom_iterator_move_forward(zend_object_iterator *iter) /* {{{ */
210
curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->ptr)->node;
211
curnode = curnode->next;
212
} else {
213
- /* Nav the tree evey time as this is LIVE */
+ /* 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. */
215
basenode = dom_object_get_node(objmap->baseobj);
216
if (php_dom_is_cache_tag_stale_from_node(&iterator->cache_tag, basenode)) {
217
if (basenode && (basenode->type == XML_DOCUMENT_NODE ||
0 commit comments