diff options
| author | Uwe Steinmann <steinm@php.net> | 2000-03-03 08:02:22 +0000 |
|---|---|---|
| committer | Uwe Steinmann <steinm@php.net> | 2000-03-03 08:02:22 +0000 |
| commit | bd096145266ca017589f3e05dc1a35da8c1610d4 (patch) | |
| tree | cb20ff9222b5d8bac8d78a7dd462ee8118929a3a /ext/domxml/domxml.c | |
| parent | eeb9e688f25cdf9d5e50661cf4032b8bf4900f81 (diff) | |
| download | php-git-bd096145266ca017589f3e05dc1a35da8c1610d4.tar.gz | |
- added property type to obejct xml doc
Diffstat (limited to 'ext/domxml/domxml.c')
| -rw-r--r-- | ext/domxml/domxml.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
