#20209 [Opn->Ana]: appending text nodes leads to segfaults sometimes

From: Date: Fri, 01 Nov 2002 09:31:50 +0000
Subject: #20209 [Opn->Ana]: appending text nodes leads to segfaults sometimes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23883@lists.php.net to get a copy of this message
ID: 20209 Updated by: chregu@php.net Reported By: chregu@php.net -Status: Open +Status: Analyzed Bug Type: DOM XML related Operating System: linux PHP Version: 4CVS-2002-11-01 -Assigned To: +Assigned To: chregu Previous Comments: ------------------------------------------------------------------------ [2002-11-01 03:31:36] chregu@php.net if a text_node is appended to a node, then it can lead to segfaults if the last child of the node is also a text-node. this is because libxml2 frees then the node. (from their docu: "Add a new node to parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case cur is freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.") and we don't... I'll try to find a solution chregu ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20209&edit=1

« previous php.bugs (#23883) next »