From ab9ceb952636a3f161969f9a5634a3f583d6019e Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 28 Aug 2003 11:34:51 +0000 Subject: [PATCH] Null dtor so that extensions won't be unloaded prematurely by list destruction --- sapi/cli/php_cli.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.50.1