Disable opcache.fast_shutdown if USE_ZEND_ALLOC=0
authorDmitry Stogov <dmitry@zend.com>
Thu, 9 Jul 2015 09:19:51 +0000 (12:19 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 9 Jul 2015 09:19:51 +0000 (12:19 +0300)
ext/opcache/ZendAccelerator.c

index 2234d5ee56919203802c55c2a530b11c026c6a23..b1feb54a2c3c7f53138d21c0fac40b8fc37a4288 100644 (file)
@@ -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