summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2014-05-05 10:13:25 +0200
committerOndřej Surý <ondrej@sury.org>2014-05-05 10:13:25 +0200
commit0a16a96c45a8a3b2999106b025c9c61ff1fdeb31 (patch)
treea92b26e687223eb0c6965ea85334697eb6775d44 /ext/simplexml/simplexml.c
parent83681d9fae3e6fb96ab01e7a4166b7d9261a4e55 (diff)
downloadphp-upstream/5.5.12+dfsg.tar.gz
New upstream version 5.5.12+dfsgupstream/5.5.12+dfsg
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 363ea1fc4..f84e1e014 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;