From ad509c690aa43d5236da5ad92cdc4b801afd1d0f Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sun, 25 May 2003 22:03:47 +0000 Subject: [PATCH] add a note, and implement this properly later --- ext/simplexml/simplexml.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index f5049181f6..05e6fcf1b7 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -293,20 +293,13 @@ sxe_properties_get(zval *object TSRMLS_DC) GET_NODE(sxe, node); - node = node->xmlChildrenNode; - if (!sxe->node) { - sxe->node = node; - } - - while (node) { - MAKE_STD_ZVAL(value); - _node_as_zval(sxe, node, value); - - zend_hash_next_index_insert(rv, &value, sizeof(zval *), NULL); - - node = node->next; - } - + /* + * XXX: TODO + * Recurse from the current node through the XML document + * and build an array return value. Expensive? sure. But + * if you ask for it, you get it :) + */ + return rv; } /* }}} */ -- 2.50.1