diff options
Diffstat (limited to 'ext/dom/node.c')
-rw-r--r-- | ext/dom/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c index b4a081ebe9..8d2859ae22 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2017 The PHP Group | + | Copyright (c) 1997-2018 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -867,7 +867,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; |