@@ -1474,7 +1474,7 @@ void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xml
1474
1474
1475
1475
if (local ) {
1476
1476
int len = (int ) ZSTR_LEN (local );
1477
- if (doc != NULL && (tmp = xmlDictExists (doc -> dict , (const xmlChar * )local , len )) != NULL ) {
1477
+ if (doc != NULL && (tmp = xmlDictExists (doc -> dict , (const xmlChar * )ZSTR_VAL ( local ) , len )) != NULL ) {
1478
1478
mapptr -> local = BAD_CAST tmp ;
1479
1479
} else {
1480
1480
mapptr -> local = BAD_CAST ZSTR_VAL (zend_string_copy (local ));
@@ -1485,7 +1485,7 @@ void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xml
1485
1485
1486
1486
if (ns ) {
1487
1487
int len = (int ) ZSTR_LEN (ns );
1488
- if (doc != NULL && (tmp = xmlDictExists (doc -> dict , (const xmlChar * )ns , len )) != NULL ) {
1488
+ if (doc != NULL && (tmp = xmlDictExists (doc -> dict , (const xmlChar * )ZSTR_VAL ( ns ) , len )) != NULL ) {
1489
1489
mapptr -> ns = BAD_CAST tmp ;
1490
1490
} else {
1491
1491
mapptr -> ns = BAD_CAST ZSTR_VAL (zend_string_copy (ns ));
0 commit comments