From 10abc1f010b775d9f21060c5041d34c25f14a2a1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 25 Oct 2018 23:41:26 +0300 Subject: [PATCH] Don't wrap php_module_shutdown() with zend_try. executor_globals are released in ZTS build, and this leads to crash. --- sapi/phpdbg/phpdbg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index d5fd81ea6c..7836f1e351 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -2157,9 +2157,7 @@ phpdbg_out: zend_hash_destroy(&PHPDBG_G(file_sources)); - zend_try { - php_module_shutdown(); - } zend_end_try(); + php_module_shutdown(); #ifndef _WIN32 /* force override (no zend_signals) to prevent crashes due to signal recursion in SIGSEGV/SIGBUS handlers */ -- 2.40.0