1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Respect strict error setting for adoptNode

This commit is contained in:
Niels Dossche
2023-08-02 20:03:03 +02:00
parent 65a02f482f
commit fa397e0217

View File

@@ -1063,7 +1063,7 @@ PHP_METHOD(DOMDocument, adoptNode)
|| nodep->type == XML_DTD_NODE
|| nodep->type == XML_ENTITY_NODE
|| nodep->type == XML_NOTATION_NODE)) {
php_dom_throw_error(NOT_SUPPORTED_ERR, true);
php_dom_throw_error(NOT_SUPPORTED_ERR, dom_get_strict_error(dom_object_nodep->document));
RETURN_THROWS();
}