[php-src] PR #12947: Move SimpleXML invalidation code after node checks
| From: | nielsdos | Date: | Tue, 12 Dec 2023 20:27:11 +0000 |
| Subject: | [php-src] PR #12947: Move SimpleXML invalidation code after node checks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24510@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12947
Author: nielsdos
This is safe, i.e. the tree hasn't been modified yet, because either we didn't call a
libxml modification function yet, or xmlNewChild is called with a NULL pointer, which makes it bail
out and return NULL.