summaryrefslogtreecommitdiff
path: root/ext/dom/documenttype.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/documenttype.c')
-rw-r--r--ext/dom/documenttype.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c
index c00509f..f937883 100644
--- a/ext/dom/documenttype.c
+++ b/ext/dom/documenttype.c
@@ -67,7 +67,7 @@ int dom_documenttype_name_read(dom_object *obj, zval **retval TSRMLS_DC)
{
xmlDtdPtr dtdptr;
- dtdptr = obj->ptr;
+ dtdptr = (xmlDtdPtr) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
ZVAL_STRING(*retval, (char *) (dtdptr->name), 1);
@@ -91,7 +91,7 @@ int dom_documenttype_entities_read(dom_object *obj, zval **retval TSRMLS_DC)
xmlNode *nodep = NULL;
int ret, htsize, index = 0;
- doctypep = obj->ptr;
+ doctypep = (xmlDtdPtr) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
array_init(*retval);
@@ -137,7 +137,7 @@ int dom_documenttype_notations_read(dom_object *obj, zval **retval TSRMLS_DC)
xmlNode *nodep = NULL;
int ret, htsize, index = 0;
- doctypep = obj->ptr;
+ doctypep = (xmlDtdPtr) dom_object_get_node(obj);
MAKE_STD_ZVAL(*retval);
array_init(*retval);
@@ -179,7 +179,7 @@ int dom_documenttype_public_id_read(dom_object *obj, zval **retval TSRMLS_DC)
{
xmlDtdPtr dtdptr;
- dtdptr = obj->ptr;
+ dtdptr = (xmlDtdPtr) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
if (dtdptr->ExternalID) {
@@ -204,7 +204,7 @@ int dom_documenttype_system_id_read(dom_object *obj, zval **retval TSRMLS_DC)
{
xmlDtdPtr dtdptr;
- dtdptr = obj->ptr;
+ dtdptr = (xmlDtdPtr) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);
if (dtdptr->SystemID) {
@@ -232,7 +232,7 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval **retval TSRMLS_
xmlOutputBuffer *buff = NULL;
xmlChar *strintsubset;
- dtdptr = obj->ptr;
+ dtdptr = (xmlDtdPtr) dom_object_get_node(obj);
ALLOC_ZVAL(*retval);