This makes domxml_root() work again. It now works
equally as well as object method or a simple function.
This commit is contained in:
Joey Smith 2001-07-16 11:16:44 +00:00
parent 721c562e2a
commit f272469b4c

View File

@ -1821,6 +1821,13 @@ PHP_FUNCTION(domxml_doc_document_element)
int ret;
id = getThis();
if (!id) {
if ((ZEND_NUM_ARGS() != 1) || getParameters(ht, 1, &id) == FAILURE) {
RETURN_FALSE;
}
}
docp = php_dom_get_object(id, le_domxmldocp, 0);
node = docp->children;