mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02: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
1 changed files with 1 additions and 2 deletions
|
@ -1961,8 +1961,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
|
||||||
ZCG(cache_opline) = NULL;
|
ZCG(cache_opline) = NULL;
|
||||||
ZCG(cache_persistent_script) = NULL;
|
ZCG(cache_persistent_script) = NULL;
|
||||||
return file_cache_compile_file(file_handle, type);
|
return file_cache_compile_file(file_handle, type);
|
||||||
} else if (!ZCG(accelerator_enabled) ||
|
} else if ((ZCSG(restart_in_progress) && accel_restart_is_active())) {
|
||||||
(ZCSG(restart_in_progress) && accel_restart_is_active())) {
|
|
||||||
if (ZCG(accel_directives).file_cache) {
|
if (ZCG(accel_directives).file_cache) {
|
||||||
return file_cache_compile_file(file_handle, type);
|
return file_cache_compile_file(file_handle, type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue