summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-04-14 15:19:45 +0000
committerMarcus Boerger <helly@php.net>2006-04-14 15:19:45 +0000
commit011266f7e13c566badef46f83d20d996f211b38e (patch)
tree078b4e6c5042cb2e49a5a465f7ef7ee9206b5b88 /ext/simplexml/simplexml.c
parent7c42ddb8e0e50f9b83cd6f5fe8c00cfaab480faa (diff)
downloadphp-git-011266f7e13c566badef46f83d20d996f211b38e.tar.gz
- MFH Fix properties access to children() result
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 99d16d7790..a51b4804ea 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -989,7 +989,7 @@ static HashTable * sxe_properties_get(zval *object TSRMLS_DC)
ZVAL_STRING(value, sxe_xmlNodeListGetString(node->doc, node->children, 1), 0);
zend_hash_next_index_insert(rv, &value, sizeof(zval *), NULL);
node = NULL;
- } else {
+ } else if (sxe->iter.type != SXE_ITER_CHILD) {
node = node->children;
}