History log of /php-src/ext/dom/tests/delayed_freeing/namespace_xmlns_declaration.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 003ebdd0 02-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-9628: Implicitly removing nodes from \DOMDocument breaks existing references

Change the way lifetime works in ext/libxml and ext/dom

Previously, a node could be freed even wh

Fix GH-9628: Implicitly removing nodes from \DOMDocument breaks existing references

Change the way lifetime works in ext/libxml and ext/dom

Previously, a node could be freed even when holding a userland reference
to it. This resulted in exceptions when trying to access that node after
it has been implicitly or explicitly removed. After this patch, a node
will only be freed when the last userland reference disappears.

Fixes GH-9628.
Closes GH-11576.

show more ...