From d9406876e226b99d41f37666f5becb3f75c7fe03 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 5 May 2003 12:56:33 +0000 Subject: [PATCH] MFB (set the doc property to NULL if no parent is available (by Rob Richards)) --- ext/domxml/php_domxml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 8d18cbea6c..f55ede7d12 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -744,6 +744,7 @@ static void php_free_xml_node(zend_rsrc_list_entry *rsrc TSRMLS_DC) if (node->parent == NULL) { /* Attribute Nodes ccontain accessible children attr_list_wrapper_dtor(node->properties); */ + xmlSetTreeDoc(node, NULL); node_list_wrapper_dtor((xmlNodePtr) node->properties, 0 TSRMLS_CC); node_list_wrapper_dtor(node->children, 0 TSRMLS_CC); node_wrapper_dtor(node); -- 2.40.0