From b77fa94cf912ecbe03728cceede63ae1c863d1b1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 9 Jul 2015 12:19:51 +0300 Subject: [PATCH] Disable opcache.fast_shutdown if USE_ZEND_ALLOC=0 --- ext/opcache/ZendAccelerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 2234d5ee56..b1feb54a2c 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -2290,7 +2290,7 @@ static void accel_deactivate(void) ZCG(counted) = 0; #if !ZEND_DEBUG - if (ZCG(accel_directives).fast_shutdown) { + if (ZCG(accel_directives).fast_shutdown && is_zend_mm()) { zend_accel_fast_shutdown(); } #endif -- 2.50.1