]> granicus.if.org Git - php/commitdiff
Set the doc property to NULL if no parent is available (by Rob Richards)
authorChristian Stocker <chregu@php.net>
Mon, 5 May 2003 12:55:23 +0000 (12:55 +0000)
committerChristian Stocker <chregu@php.net>
Mon, 5 May 2003 12:55:23 +0000 (12:55 +0000)
ext/domxml/php_domxml.c

index d9d18b5c2254cf6fd0fa88d30aac3fb9c66fab11..f3c2b88188de9f814ec9ed20b439484faf252d78 100644 (file)
@@ -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);