From 82de4fcfe6c254e86d25eeca024e94697f955e87 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Mar 2022 14:51:40 +0100 Subject: [PATCH] ext/opcache/ZendAccelerator: remove redundant check (#8222) The "accelerator_enabled" flag has been checked already in the previous "if". --- ext/opcache/ZendAccelerator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index b753f805394..b3115893029 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -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); }