From a911fbc80a8e29aa1d58d8e8a86c4fa3f6c7bf92 Mon Sep 17 00:00:00 2001 From: Dylan Arnold Date: Mon, 9 Sep 2013 13:06:38 +1200 Subject: [PATCH] Call php_module_shutdown() for php-fpm child processes --- sapi/fpm/fpm/fpm_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index 043e0e00a47c0..4b20e632dd361 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -1982,8 +1982,9 @@ consult the installation file that came with this distribution, or visit \n\ out: SG(server_context) = NULL; + php_module_shutdown(TSRMLS_C); + if (parent) { - php_module_shutdown(TSRMLS_C); sapi_shutdown(); }