From 68485f8ab4df0e1b3e4f446006ce25b6be358975 Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Wed, 26 Jun 2019 13:18:50 +0200 Subject: implement tsrm_is_shutdown API --- sapi/phpdbg/phpdbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index eca24b4a4d..463749ea3a 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -2161,8 +2161,6 @@ phpdbg_out: Z_PTR_P(zv) = (void*)PHPDBG_G(orig_url_wrap_php); } - php_module_shutdown(); - #ifndef _WIN32 /* force override (no zend_signals) to prevent crashes due to signal recursion in SIGSEGV/SIGBUS handlers */ signal(SIGSEGV, SIG_DFL); @@ -2173,6 +2171,8 @@ phpdbg_out: #endif } + php_module_shutdown(); + sapi_shutdown(); if (sapi_name) { -- cgit v1.2.1