Skip to content

Commit fa397e0

Browse files
committed
Respect strict error setting for adoptNode
1 parent 65a02f4 commit fa397e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/document.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ PHP_METHOD(DOMDocument, adoptNode)
10631063
|| nodep->type == XML_DTD_NODE
10641064
|| nodep->type == XML_ENTITY_NODE
10651065
|| nodep->type == XML_NOTATION_NODE)) {
1066-
php_dom_throw_error(NOT_SUPPORTED_ERR, true);
1066+
php_dom_throw_error(NOT_SUPPORTED_ERR, dom_get_strict_error(dom_object_nodep->document));
10671067
RETURN_THROWS();
10681068
}
10691069

0 commit comments

Comments
 (0)