[php-src] PR #23931: ext/libxml: Keep SimpleXML children alive across reconstruction
| From: | iliaal | Date: | Sat, 26 Sep 2026 22:17:30 +0000 |
| Subject: | [php-src] PR #23931: ext/libxml: Keep SimpleXML children alive across reconstruction | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38842@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23931
Author: iliaal
Reconstructing a SimpleXMLElement decremented the shared node and then installed a new document
while the old pointer was still set, so the second decrement freed a node a child object still held.
The pointer is cleared before the new node is installed.