summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-07-05 13:32:39 +0300
committerDmitry Stogov <dmitry@zend.com>2018-07-05 13:32:39 +0300
commitb6fb584505cfddcd20c9913e0931374a8ce33a3f (patch)
treecfcefd169332785b149b03ff3d80c88936a46051 /ext/spl
parent0d235517a36ea99c7fc1116e0dc90cba3c21a1f7 (diff)
downloadphp-git-b6fb584505cfddcd20c9913e0931374a8ce33a3f.tar.gz
Replace zval_dtor() with specialized destructors
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/php_spl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 37d1ecfc7e..f3acd6dd3d 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -881,7 +881,7 @@ PHP_MINFO_FUNCTION(spl)
SPL_LIST_CLASSES(&list, 0, 1, ZEND_ACC_INTERFACE)
strg = estrdup("");
zend_hash_apply_with_argument(Z_ARRVAL_P(&list), (apply_func_arg_t)spl_build_class_list_string, &strg);
- zval_dtor(&list);
+ zend_array_destroy(Z_ARR(list));
php_info_print_table_row(2, "Interfaces", strg + 2);
efree(strg);
@@ -889,7 +889,7 @@ PHP_MINFO_FUNCTION(spl)
SPL_LIST_CLASSES(&list, 0, -1, ZEND_ACC_INTERFACE)
strg = estrdup("");
zend_hash_apply_with_argument(Z_ARRVAL_P(&list), (apply_func_arg_t)spl_build_class_list_string, &strg);
- zval_dtor(&list);
+ zend_array_destroy(Z_ARR(list));
php_info_print_table_row(2, "Classes", strg + 2);
efree(strg);