summaryrefslogtreecommitdiff
path: root/ext/dom/text.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-11-29 14:48:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-11-29 14:48:53 +0000
commitf719d3707d5b26709dd85f67de82a7c33781e2e3 (patch)
treeef0ad5684578b0798589f55affb2ef6a6d7fd35e /ext/dom/text.c
parentdd92188d760153817887775d56be1fb2bf09e49f (diff)
downloadphp-git-f719d3707d5b26709dd85f67de82a7c33781e2e3.tar.gz
Fixed bug #52656 (DOMCdataSection does not work with splitText).
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r--ext/dom/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 88cbe5377f..c8a39515ca 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -160,7 +160,7 @@ PHP_FUNCTION(dom_text_split_text)
}
DOM_GET_OBJ(node, id, xmlNodePtr, intern);
- if (node->type != XML_TEXT_NODE) {
+ if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) {
RETURN_FALSE;
}