1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02: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
+1 -1
View File
@@ -1063,7 +1063,7 @@ PHP_METHOD(DOMDocument, adoptNode)
|| nodep->type == XML_DTD_NODE || nodep->type == XML_DTD_NODE
|| nodep->type == XML_ENTITY_NODE || nodep->type == XML_ENTITY_NODE
|| nodep->type == XML_NOTATION_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(); RETURN_THROWS();
} }