summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2003-05-05 12:56:33 +0000
committerChristian Stocker <chregu@php.net>2003-05-05 12:56:33 +0000
commitd9406876e226b99d41f37666f5becb3f75c7fe03 (patch)
treed4713216db2538499cf2301d6c43a6105f0661c5 /ext/domxml/php_domxml.c
parente364d1f589a4a6c466be3c1b6d89baa301fc8289 (diff)
downloadphp-git-d9406876e226b99d41f37666f5becb3f75c7fe03.tar.gz
MFB (set the doc property to NULL if no parent is available (by Rob Richards))
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c1
1 files changed, 1 insertions, 0 deletions
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);