From: Stanislav Malyshev Date: Thu, 28 Aug 2003 11:34:51 +0000 (+0000) Subject: Null dtor so that extensions won't be unloaded prematurely by list X-Git-Tag: php-4.3.4RC1~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab9ceb952636a3f161969f9a5634a3f583d6019e;p=php Null dtor so that extensions won't be unloaded prematurely by list destruction --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 83ed7f0d41..de8e6096a9 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -164,6 +164,7 @@ static void print_extensions(TSRMLS_D) zend_llist sorted_exts; zend_llist_copy(&sorted_exts, &zend_extensions); + sorted_exts.dtor = NULL; zend_llist_sort(&sorted_exts, extension_name_cmp TSRMLS_CC); zend_llist_apply_with_argument(&sorted_exts, (llist_apply_with_arg_func_t) print_extension_info, NULL TSRMLS_CC); zend_llist_destroy(&sorted_exts);