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/intl/breakiterator/breakiterator_class.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/intl/breakiterator/breakiterator_class.cpp') diff --git a/ext/intl/breakiterator/breakiterator_class.cpp b/ext/intl/breakiterator/breakiterator_class.cpp index ae9e258608..355072dec5 100644 --- a/ext/intl/breakiterator/breakiterator_class.cpp +++ b/ext/intl/breakiterator/breakiterator_class.cpp @@ -144,8 +144,7 @@ static HashTable *BreakIterator_get_debug_info(zval *object, int *is_temp) *is_temp = 1; - ALLOC_HASHTABLE(debug_info); - zend_hash_init(debug_info, 8, NULL, ZVAL_PTR_DTOR, 0); + debug_info = zend_new_array(8); bio = Z_INTL_BREAKITERATOR_P(object); biter = bio->biter; -- cgit v1.2.1