]> granicus.if.org Git - php/commitdiff
forgot this: set doc for new text node as current may not be in tree
authorRob Richards <rrichards@php.net>
Wed, 11 Jun 2003 20:06:03 +0000 (20:06 +0000)
committerRob Richards <rrichards@php.net>
Wed, 11 Jun 2003 20:06:03 +0000 (20:06 +0000)
ext/dom/text.c

index c5856b4681d391961c201447a7c3a65124818e12..68461ccd5d5c675384cc419eace5668cbe469cf8 100644 (file)
@@ -141,7 +141,7 @@ PHP_FUNCTION(dom_text_split_text)
        xmlFree(cur);
 
        xmlNodeSetContentLen(node, first, offset);
-       nnode = xmlNewText(second);
+       nnode = xmlNewDocText(node->doc, second);
        
        xmlFree(first);
        xmlFree(second);