summaryrefslogtreecommitdiff
path: root/ext/dom/text.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2003-06-12 17:04:28 +0000
committerRob Richards <rrichards@php.net>2003-06-12 17:04:28 +0000
commit2b8fcfbeab591c72d660036b4f82706e8d5f34b8 (patch)
tree227ff988aac33d8b432a4ba4def842732ae12647 /ext/dom/text.c
parent2d4449caf9cc96084bcd5c3343c8f1b8cf495068 (diff)
downloadphp-git-2b8fcfbeab591c72d660036b4f82706e8d5f34b8.tar.gz
fix some calls to libxml
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r--ext/dom/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 68461ccd5d..0f0b9ab1e2 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -150,6 +150,8 @@ PHP_FUNCTION(dom_text_split_text)
nnode->type = XML_ELEMENT_NODE;
xmlAddNextSibling(node, nnode);
nnode->type = XML_TEXT_NODE;
+ } else {
+ dom_add_to_list(nnode, intern TSRMLS_CC);
}
return_value = php_dom_create_object(nnode, &ret, NULL, return_value, intern TSRMLS_CC);