summaryrefslogtreecommitdiff
path: root/ext/dom/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/entity.c')
-rw-r--r--ext/dom/entity.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/dom/entity.c b/ext/dom/entity.c
index 2e1b184..84ad942 100644
--- a/ext/dom/entity.c
+++ b/ext/dom/entity.c
@@ -48,7 +48,8 @@ Since:
int dom_entity_public_id_read(dom_object *obj, zval **retval TSRMLS_DC)
{
xmlEntity *nodep;
- nodep = obj->ptr;
+
+ nodep = (xmlEntity *) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) {
@@ -72,7 +73,8 @@ Since:
int dom_entity_system_id_read(dom_object *obj, zval **retval TSRMLS_DC)
{
xmlEntity *nodep;
- nodep = obj->ptr;
+
+ nodep = (xmlEntity *) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) {
@@ -98,7 +100,7 @@ int dom_entity_notation_name_read(dom_object *obj, zval **retval TSRMLS_DC)
xmlEntity *nodep;
char *content;
- nodep = obj->ptr;
+ nodep = (xmlEntity *) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) {