Patch sxe-var-dump for SimpleXML related Bug #66084
Patch version 2015-05-26 14:27 UTC
Return to Bug #66084 |
Download this patch
Patch Revisions:
Developer: cmb@php.net
ext/simplexml/simplexml.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 7a9775b..dad79ed 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1185,8 +1185,7 @@ static HashTable *sxe_get_prop_hash(zval *object, int is_debug) /* {{{ */
zend_hash_next_index_insert(rv, &value);
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);
|