summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-09-20 02:25:56 +0300
committerDmitry Stogov <dmitry@zend.com>2017-09-20 02:25:56 +0300
commit44e0b79ac64b344fc1335c126e548f00d8308602 (patch)
treebcfc582b0d7a46b9798498fcb163079c7b9b8750 /ext/mysqli/mysqli.c
parentc1dc10aaa5249ba54b6fa5bc043a80bd96f1c9e7 (diff)
downloadphp-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/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index b77fc8dec0..63065b5e90 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -424,8 +424,7 @@ HashTable *mysqli_object_get_debug_info(zval *object, int *is_temp)
HashTable *retval, *props = obj->prop_handler;
mysqli_prop_handler *entry;
- ALLOC_HASHTABLE(retval);
- ZEND_INIT_SYMTABLE_EX(retval, zend_hash_num_elements(props) + 1, 0);
+ retval = zend_new_array(zend_hash_num_elements(props) + 1);
ZEND_HASH_FOREACH_PTR(props, entry) {
zval rv, member;