diff options
| author | Christian Stocker <chregu@php.net> | 2003-05-05 12:55:23 +0000 |
|---|---|---|
| committer | Christian Stocker <chregu@php.net> | 2003-05-05 12:55:23 +0000 |
| commit | 1e6865b38e92db5a07c678900b7347df67e57e66 (patch) | |
| tree | 4526fbcf1b0d66e338e51544b7cbddf8f96939b6 /ext/domxml/php_domxml.c | |
| parent | 42e19bdbd790ecd223242bab3b10cc028ab90c4c (diff) | |
| download | php-git-1e6865b38e92db5a07c678900b7347df67e57e66.tar.gz | |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
