cvs: php4 /ext/domxml php_domxml.c

From: Date: Tue, 04 Mar 2003 13:38:39 +0000
Subject: cvs: php4 /ext/domxml php_domxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19348@lists.php.net to get a copy of this message
chregu Tue Mar 4 08:38:39 2003 EDT Modified files: /php4/ext/domxml php_domxml.c Log: MFB (make it really W3C compatible (unlink node, when in tree...)) Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.236 php4/ext/domxml/php_domxml.c:1.237 --- php4/ext/domxml/php_domxml.c:1.236 Thu Feb 13 16:41:00 2003 +++ php4/ext/domxml/php_domxml.c Tue Mar 4 08:38:38 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_domxml.c,v 1.236 2003/02/13 21:41:00 helly Exp $ */ +/* $Id: php_domxml.c,v 1.237 2003/03/04 13:38:38 chregu Exp $ */ /* TODO * - Support Notation Nodes @@ -2329,8 +2329,8 @@ RETURN_FALSE; } - /* first unlink node, if child is already a child of parent */ - if (child->parent == parent){ + /* first unlink node, if child is already in the tree */ + if (child->doc == parent->doc && child->parent != NULL){ xmlUnlinkNode(child); }

« previous php.cvs (#19348) next »