diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-09-20 02:25:56 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-09-20 02:25:56 +0300 |
commit | 44e0b79ac64b344fc1335c126e548f00d8308602 (patch) | |
tree | bcfc582b0d7a46b9798498fcb163079c7b9b8750 /ext/intl/msgformat/msgformat_format.c | |
parent | c1dc10aaa5249ba54b6fa5bc043a80bd96f1c9e7 (diff) | |
download | php-git-44e0b79ac64b344fc1335c126e548f00d8308602.tar.gz |
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.
Diffstat (limited to 'ext/intl/msgformat/msgformat_format.c')
-rw-r--r-- | ext/intl/msgformat/msgformat_format.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index cb74a3fb1b..bfc9dbe3ac 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -41,8 +41,7 @@ static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *ret count = zend_hash_num_elements(Z_ARRVAL_P(args)); - ALLOC_HASHTABLE(args_copy); - zend_hash_init(args_copy, count, NULL, ZVAL_PTR_DTOR, 0); + args_copy = zend_new_array(count); zend_hash_copy(args_copy, Z_ARRVAL_P(args), (copy_ctor_func_t)zval_add_ref); umsg_format_helper(mfo, args_copy, &formatted, &formatted_len); |