mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Restore accidentally deleted check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user