summaryrefslogtreecommitdiff
path: root/ext/dom/characterdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/characterdata.c')
-rw-r--r--ext/dom/characterdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/characterdata.c b/ext/dom/characterdata.c
index 28dbb4d091..9daa24dbe6 100644
--- a/ext/dom/characterdata.c
+++ b/ext/dom/characterdata.c
@@ -108,7 +108,7 @@ int dom_characterdata_data_write(dom_object *obj, zval *newval)
str = zval_get_string(newval);
- xmlNodeSetContentLen(nodep, (xmlChar *) str->val, str->len + 1);
+ xmlNodeSetContentLen(nodep, (xmlChar *) ZSTR_VAL(str), ZSTR_LEN(str) + 1);
zend_string_release(str);
return SUCCESS;