summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-05-29 21:16:56 +0200
committerAnatol Belski <ab@php.net>2015-05-29 21:16:56 +0200
commit5683b6fa3962f483a407ca17d49397b203ed4145 (patch)
treecb8ab75f98544ed9cdd452130c85df6a2942417c /ext/simplexml/simplexml.c
parentc4e9651b587e1ebcf3e2de7a2d3d586c0cc3e0c4 (diff)
downloadphp-git-5683b6fa3962f483a407ca17d49397b203ed4145.tar.gz
Refactored the fix for bug #66084, by cmb@php.net
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 e0de6ee7ef..6b8e23a01a 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->next || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
+ if ( sxe->iter.type == SXE_ITER_NONE || !node->children || !node->parent || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
node = node->children;
} else {
iter_data = sxe->iter.data;