cvs: php4(PHP_4_3) /ext/domxml php_domxml.c

From: Date: Mon, 05 May 2003 12:55:23 +0000
Subject: cvs: php4(PHP_4_3) /ext/domxml php_domxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20705@lists.php.net to get a copy of this message
chregu Mon May 5 08:55:23 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/domxml php_domxml.c Log: Set the doc property to NULL if no parent is available (by Rob Richards) Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.218.2.20 php4/ext/domxml/php_domxml.c:1.218.2.21 --- php4/ext/domxml/php_domxml.c:1.218.2.20 Thu Apr 17 20:20:36 2003 +++ php4/ext/domxml/php_domxml.c Mon May 5 08:55:23 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_domxml.c,v 1.218.2.20 2003/04/18 00:20:36 iliaa Exp $ */ +/* $Id: php_domxml.c,v 1.218.2.21 2003/05/05 12:55:23 chregu Exp $ */ /* TODO * - Support Notation Nodes @@ -735,6 +735,7 @@ 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);

« previous php.cvs (#20705) next »