1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

dom: Remove unnecessary objmap ptr null checks (#19092)

This commit is contained in:
Niels Dossche
2025-07-11 10:35:14 +02:00
committed by GitHub
parent e013b4a91e
commit 4aa8c2fe5d
2 changed files with 0 additions and 7 deletions

View File

@@ -35,10 +35,6 @@
zend_long php_dom_get_namednodemap_length(dom_object *obj)
{
dom_nnodemap_object *objmap = obj->ptr;
if (!objmap) {
return 0;
}
return objmap->handler->length(objmap);
}

View File

@@ -294,9 +294,6 @@ static void dom_map_get_null_item(dom_nnodemap_object *map, zend_long index, zva
zend_long php_dom_get_nodelist_length(dom_object *obj)
{
dom_nnodemap_object *objmap = obj->ptr;
if (!objmap) {
return 0;
}
if (objmap->handler->use_cache) {
xmlNodePtr nodep = dom_object_get_node(objmap->baseobj);