mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
ext/opcache/ZendAccelerator: remove redundant check (#8222)
The "accelerator_enabled" flag has been checked already in the previous "if".
This commit is contained in:
parent
c9385ee1ad
commit
82de4fcfe6
@ -1961,8 +1961,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
|
||||
ZCG(cache_opline) = NULL;
|
||||
ZCG(cache_persistent_script) = NULL;
|
||||
return file_cache_compile_file(file_handle, type);
|
||||
} else if (!ZCG(accelerator_enabled) ||
|
||||
(ZCSG(restart_in_progress) && accel_restart_is_active())) {
|
||||
} else if ((ZCSG(restart_in_progress) && accel_restart_is_active())) {
|
||||
if (ZCG(accel_directives).file_cache) {
|
||||
return file_cache_compile_file(file_handle, type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user