mirror of
https://github.com/php/php-src.git
synced 2026-04-14 19:41:05 +02:00
Prevent race condition in opcache_reset()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user