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

index 8d18cbea6c7997bdb45c9d39fc2e0b329fe77c17..f55ede7d12d6d04b91c8d81ebf835ad92340eb14 100644 (file)
@@ -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);