diff options
Diffstat (limited to 'ext/dom/node.c')
-rw-r--r-- | ext/dom/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c index 4579b547d5..f5b017c9c7 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -856,7 +856,7 @@ int dom_node_text_content_write(dom_object *obj, zval *newval) str = zval_get_string(newval); /* we have to use xmlNodeAddContent() to get the same behavior as with xmlNewText() */ xmlNodeSetContent(nodep, (xmlChar *) ""); - xmlNodeAddContent(nodep, ZSTR_VAL(str)); + xmlNodeAddContent(nodep, (xmlChar *) ZSTR_VAL(str)); zend_string_release(str); return SUCCESS; |