History log of /PHP-8.1/ext/dom/tests/gh12616_2.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 243fa9c1 15-Nov-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix

The namespace data is freed and set to NULL, but there remain references
to the namespace declaration

Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix

The namespace data is freed and set to NULL, but there remain references
to the namespace declaration nodes. This (rightfully) confuses libxml2
because its invariants are broken. We also have to remove all remaining
references from the subtree. This fixes the data corruption bug.

Closes GH-12681.

show more ...