From bd096145266ca017589f3e05dc1a35da8c1610d4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 3 Mar 2000 08:02:22 +0000 Subject: [PATCH] - added property type to obejct xml doc --- ext/domxml/domxml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/domxml/domxml.c b/ext/domxml/domxml.c index 72b2e00c26..df51612969 100644 --- a/ext/domxml/domxml.c +++ b/ext/domxml/domxml.c @@ -959,6 +959,7 @@ PHP_FUNCTION(xmldoc) object_init_ex(return_value, domxmldoc_class_entry_ptr); add_property_resource(return_value, "doc", ret); add_property_stringl(return_value, "version", (char *) docp->version, strlen(docp->version), 1); + add_property_long(return_value, "type", docp->type); zend_list_addref(ret); } /* }}} */ @@ -1282,6 +1283,7 @@ PHP_FUNCTION(xmltree) /* construct the document is a php object for return */ object_init_ex(return_value, domxmldoc_class_entry_ptr); add_property_stringl(return_value, "version", (char *) docp->version, strlen(docp->version), 1); + add_property_long(return_value, "type", docp->type); /* get the root and add as a property to the document */ root = docp->root; -- 2.50.1