From: Dmitry Stogov Date: Fri, 15 Aug 2008 07:30:31 +0000 (+0000) Subject: Fixed double call to MSHUTDOWN in case of `php-cgi -m` X-Git-Tag: php-5.2.7RC1~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16e6e2f04a5e1e37fcadbd2b70e4caf8567ab6af;p=php Fixed double call to MSHUTDOWN in case of `php-cgi -m` --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 37c7909e13..67978b1956 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -238,6 +238,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);