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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index 68461cc..4995eb6 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -84,7 +84,7 @@ int dom_text_whole_text_read(dom_object *obj, zval **retval TSRMLS_DC)
xmlNodePtr node;
xmlChar *wholetext;
- node = obj->ptr;
+ node = dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
wholetext = xmlNodeListGetString(node->doc, node, 1);