summaryrefslogtreecommitdiff
path: root/ext/dom/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r--ext/dom/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 2cbb1c7da3..1cefa665aa 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -1,6 +1,6 @@
/*
+----------------------------------------------------------------------+
- | PHP Version 5 |
+ | PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2014 The PHP Group |
+----------------------------------------------------------------------+
@@ -126,7 +126,7 @@ int dom_text_whole_text_read(dom_object *obj, zval *retval TSRMLS_DC)
}
if (wholetext != NULL) {
- ZVAL_STRING(retval, wholetext);
+ ZVAL_STRING(retval, (char *) wholetext);
xmlFree(wholetext);
} else {
ZVAL_EMPTY_STRING(retval);