Skip to content

Commit db4a6de

Browse files
cmb69weltling
authored andcommitted
fixed whitespace depending (mis)behavior of var_dump'ing and print_r'ing SimpleXMLElements
1 parent 1a3a674 commit db4a6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/simplexml/simplexml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ static HashTable *sxe_get_prop_hash(zval *object, int is_debug) /* {{{ */
11861186
node = NULL;
11871187
} else if (sxe->iter.type != SXE_ITER_CHILD) {
11881188

1189-
if ( !node->children || !node->parent || !node->next || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
1189+
if ( sxe->iter.type == SXE_ITER_NONE || !node->children || !node->parent || node->children->next || node->children->children || node->parent->children == node->parent->last ) {
11901190
node = node->children;
11911191
} else {
11921192
ZVAL_COPY_VALUE(&iter_data, &sxe->iter.data);

0 commit comments

Comments
 (0)