]> granicus.if.org Git - php/commitdiff
Fix bug #37456 (DOMElement->setAttribute() loops forever)
authorRob Richards <rrichards@php.net>
Wed, 17 May 2006 16:32:04 +0000 (16:32 +0000)
committerRob Richards <rrichards@php.net>
Wed, 17 May 2006 16:32:04 +0000 (16:32 +0000)
ext/dom/php_dom.c

index cd9db606c7d5cd2f558d24685320b31865ef163f..fd9f40063f613f64b618f2fd3209d4aad4a86755 100644 (file)
@@ -907,6 +907,9 @@ void node_list_unlink(xmlNodePtr node TSRMLS_DC)
                if (wrapper != NULL ) {
                        xmlUnlinkNode(node);
                } else {
+                       if (node->type == XML_ENTITY_REF_NODE)
+                               break;
+
                        node_list_unlink(node->children TSRMLS_CC);
 
                        switch (node->type) {