File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,10 @@ static void php_dom_iterator_move_forward(zend_object_iterator *iter) /* {{{ */
206
206
/* The collection is live, we nav the tree from the base object if we cannot
207
207
* use the cache to restart from the last point. */
208
208
xmlNodePtr basenode = dom_object_get_node (objmap -> baseobj );
209
- if (UNEXPECTED (!basenode )) {
210
- goto err ;
211
- }
209
+
210
+ /* We have a strong reference to the base node via baseobj_zv, this cannot become NULL */
211
+ ZEND_ASSERT (basenode != NULL );
212
+
212
213
int previndex ;
213
214
if (php_dom_is_cache_tag_stale_from_node (& iterator -> cache_tag , basenode )) {
214
215
php_dom_mark_cache_tag_up_to_date_from_node (& iterator -> cache_tag , basenode );
@@ -234,7 +235,7 @@ static void php_dom_iterator_move_forward(zend_object_iterator *iter) /* {{{ */
234
235
}
235
236
}
236
237
}
237
- err :
238
+
238
239
zval_ptr_dtor (& iterator -> curobj );
239
240
ZVAL_UNDEF (& iterator -> curobj );
240
241
You can’t perform that action at this time.
0 commit comments