diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 16fe80c9b40..4d4de77993c 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -768,7 +768,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; }