static HashTable *
sxe_properties_get(zval *object TSRMLS_DC)
{
- HashTable *return_value;
+ HashTable *rv;
zval *value;
php_sxe_object *sxe;
char *name;
xmlAttrPtr attr;
int counter = 0;
- MAKE_STD_ZVAL(return_value);
- array_init(return_value);
-
+ ALLOC_HASHTABLE_REL(rv);
+ zend_hash_init(rv, 0, NULL, ZVAL_PTR_DTOR, 0);
+
sxe = php_sxe_fetch_object(object TSRMLS_CC);
GET_NODE(sxe, node);
MAKE_STD_ZVAL(value);
_node_as_zval(sxe, node, value);
- add_next_index_zval(return_value, value);
+ zend_hash_next_index_insert(rv, &value, sizeof(zval *), NULL);
node = node->next;
}
- return return_value;
+ return rv;
}
/* }}} */