mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
7e91fcd7f9
We have to free the retrieved text content; to keep the code readable, we extract a helper function to check for empty nodes. Unfortunately, we cannot use xmlIsBlankNode(), because that also recognizes whitespace only text content. We also make sure to properly handle NULL returns from xmlNodeGetContent().