From 1e6865b38e92db5a07c678900b7347df67e57e66 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 5 May 2003 12:55:23 +0000 Subject: [PATCH] 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 d9d18b5c22..f3c2b88188 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -735,6 +735,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.50.1