summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2015-05-26 18:35:09 +0200
committerAnatol Belski <ab@php.net>2015-05-29 20:43:34 +0200
commitdb4a6def475375986e40783824952118421e37db (patch)
tree93521399b1862476040421acc7f7b8bb2af2a1c7
parent1a3a674ee64e8174c54d5e33a3cee1f7125f35a7 (diff)
downloadphp-git-db4a6def475375986e40783824952118421e37db.tar.gz
fixed whitespace depending (mis)behavior of var_dump'ing and print_r'ing SimpleXMLElements
-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 7a9775b752..18957d4fcb 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1186,7 +1186,7 @@ static HashTable *sxe_get_prop_hash(zval *object, int is_debug) /* {{{ */
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 {
ZVAL_COPY_VALUE(&iter_data, &sxe->iter.data);