diff options
author | Rob Richards <rrichards@php.net> | 2003-06-09 20:20:55 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2003-06-09 20:20:55 +0000 |
commit | 6d72c89408234b954e7440e132b50474b9872d72 (patch) | |
tree | a85f3de1f6239709884844d641dbe63b267657ef /ext/dom/domimplementation.c | |
parent | aec7815e9cc4e29688729b7176ba6457819b6d3b (diff) | |
download | php-git-6d72c89408234b954e7440e132b50474b9872d72.tar.gz |
implmentation of document ref counting for persistance
re-work of internal object handling
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r-- | ext/dom/domimplementation.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c index 6654d6d82e..b434cae288 100644 --- a/ext/dom/domimplementation.c +++ b/ext/dom/domimplementation.c @@ -105,7 +105,7 @@ PHP_FUNCTION(dom_domimplementation_create_document_type) doctype = xmlCreateIntSubset(NULL, localname, pch1, pch2); xmlFree(localname); - DOM_RET_OBJ(rv, (xmlNodePtr) doctype, &ret); + DOM_RET_OBJ(rv, (xmlNodePtr) doctype, &ret, NULL); } /* }}} end dom_domimplementation_create_document_type */ @@ -125,13 +125,14 @@ PHP_FUNCTION(dom_domimplementation_create_document) char *uri, *name; xmlChar *prefix = NULL, *localname = NULL; xmlURIPtr uristruct; + dom_object *doctobj; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sso", &uri, &uri_len, &name, &name_len, &node) == FAILURE) { return; } if (doctype != NULL) { - DOM_GET_OBJ(doctype, node, xmlDtdPtr); + DOM_GET_OBJ(doctype, node, xmlDtdPtr, doctobj); if (doctype->type == XML_DOCUMENT_TYPE_NODE) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid DocumentType object"); RETURN_FALSE; @@ -228,7 +229,7 @@ PHP_FUNCTION(dom_domimplementation_create_document) xmlFree(localname); } - DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret); + DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret, NULL); } /* }}} end dom_domimplementation_create_document */ |