From 44e0b79ac64b344fc1335c126e548f00d8308602 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 20 Sep 2017 02:25:56 +0300 Subject: Refactored array creation API. array_init() and array_init_size() are converted into macros calling zend_new_array(). They are not functions anymore and don't return any values. --- ext/xsl/php_xsl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/xsl/php_xsl.c') diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c index b7160232ef..61afc36099 100644 --- a/ext/xsl/php_xsl.c +++ b/ext/xsl/php_xsl.c @@ -113,10 +113,8 @@ zend_object *xsl_objects_new(zend_class_entry *class_type) zend_object_std_init(&intern->std, class_type); object_properties_init(&intern->std, class_type); - ALLOC_HASHTABLE(intern->parameter); - zend_hash_init(intern->parameter, 0, NULL, ZVAL_PTR_DTOR, 0); - ALLOC_HASHTABLE(intern->registered_phpfunctions); - zend_hash_init(intern->registered_phpfunctions, 0, NULL, ZVAL_PTR_DTOR, 0); + intern->parameter = zend_new_array(0); + intern->registered_phpfunctions = zend_new_array(0); intern->std.handlers = &xsl_object_handlers; return &intern->std; -- cgit v1.2.1