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

Restore accidentally deleted check

This commit is contained in:
Niels Dossche
2024-10-12 13:41:24 +02:00
parent c31eac7284
commit b7b0b954be

View File

@@ -1152,6 +1152,10 @@ static void dom_node_replace_child(INTERNAL_FUNCTION_PARAMETERS, bool modern)
RETURN_FALSE;
}
if (!nodep->children) {
RETURN_FALSE;
}
if (!dom_node_check_legacy_insertion_validity(nodep, newchild, stricterror, false)) {
RETURN_FALSE;
}