From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4CVS-2002-11-01
PHP Bug Type:     DOM XML related
Bug description:  appending text nodes leads to segfaults sometimes

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 bug report at http://bugs.php.net/?id=20209&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20209&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20209&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20209&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20209&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20209&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20209&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20209&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20209&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20209&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20209&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20209&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20209&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20209&r=isapi

Reply via email to