summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/zend_accelerator_module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c
index 5b43a55202..23585d0d46 100644
--- a/ext/opcache/zend_accelerator_module.c
+++ b/ext/opcache/zend_accelerator_module.c
@@ -766,7 +766,10 @@ static ZEND_FUNCTION(opcache_reset)
RETURN_FALSE;
}
+ /* exclusive lock */
+ zend_shared_alloc_lock();
zend_accel_schedule_restart(ACCEL_RESTART_USER);
+ zend_shared_alloc_unlock();
RETURN_TRUE;
}