summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorErik Lundin <erik@coretech.se>2019-08-13 22:50:37 +0200
committerJoe Watkins <krakjoe@php.net>2019-10-02 08:17:04 +0200
commit6462c196897b8c5ccf606b8af8de790b77799de6 (patch)
treeed9b2d886e2f7d2442fcc9e82d2e25c61f610846 /ext/simplexml/simplexml.c
parent3709c03cda0a7682e1cf0dbbd1bcfd7841f66faa (diff)
downloadphp-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.c2
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) {