mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Close Bug #10235.
This makes domxml_root() work again. It now works equally as well as object method or a simple function.
This commit is contained in:
parent
721c562e2a
commit
f272469b4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user