ext/opcache/ZendAccelerator: remove redundant check (#8222)

The "accelerator_enabled" flag has been checked already in the
previous "if".
This commit is contained in:
Max Kellermann 2022-03-19 14:51:40 +01:00 committed by GitHub
parent c9385ee1ad
commit 82de4fcfe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}