From: Sterling Hughes Date: Sun, 25 May 2003 22:03:47 +0000 (+0000) Subject: add a note, and implement this properly later X-Git-Tag: RELEASE_1_0_2~591 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad509c690aa43d5236da5ad92cdc4b801afd1d0f;p=php add a note, and implement this properly later --- 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; } /* }}} */