diff options
author | Erik Lundin <erik@coretech.se> | 2019-08-13 22:50:37 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-10-02 08:17:04 +0200 |
commit | 6462c196897b8c5ccf606b8af8de790b77799de6 (patch) | |
tree | ed9b2d886e2f7d2442fcc9e82d2e25c61f610846 /ext/simplexml/simplexml.c | |
parent | 3709c03cda0a7682e1cf0dbbd1bcfd7841f66faa (diff) | |
download | php-git-6462c196897b8c5ccf606b8af8de790b77799de6.tar.gz |
Fixed #75245 Don't set content of elements with only whitespaces
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r-- | ext/simplexml/simplexml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 06c504884c..2cdff0e648 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1197,7 +1197,7 @@ static HashTable *sxe_get_prop_hash(zval *object, int is_debug) /* {{{ */ } while (node) { - if (node->children != NULL || node->prev != NULL || node->next != NULL) { + if (node->children != NULL || node->prev != NULL || node->next != NULL || xmlIsBlankNode(node)) { SKIP_TEXT(node); } else { if (node->type == XML_TEXT_NODE) { |