From: Uwe Steinmann Date: Fri, 3 Mar 2000 08:02:22 +0000 (+0000) Subject: - added property type to obejct xml doc X-Git-Tag: PHP-4.0-RC1~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd096145266ca017589f3e05dc1a35da8c1610d4;p=php - added property type to obejct xml doc --- 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;