summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-04-05 09:46:24 +0200
committerAnatol Belski <ab@php.net>2014-04-05 09:46:24 +0200
commita0beddf5e9ab3c6feaf0921be72a7f430597abea (patch)
tree941dc149e39161db271727a27184d5a20db34aa1 /ext/simplexml/simplexml.c
parent7e5de3a1ce0ec5e2efc84cea67e82d487cd0bf54 (diff)
downloadphp-git-a0beddf5e9ab3c6feaf0921be72a7f430597abea.tar.gz
Fixed bug #66084 simplexml_load_string() mangles empty node name
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 b9966ddcce..15a8512a43 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1129,7 +1129,7 @@ static HashTable * sxe_get_prop_hash(zval *object, int is_debug TSRMLS_DC) /* {{
node = NULL;
} else if (sxe->iter.type != SXE_ITER_CHILD) {
- if ( !node->children || !node->parent || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
+ if ( !node->children || !node->parent || !node->next || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
node = node->children;
} else {
iter_data = sxe->iter.data;