Skip to content

Commit 82de4fc

Browse files
ext/opcache/ZendAccelerator: remove redundant check (#8222)
The "accelerator_enabled" flag has been checked already in the previous "if".
1 parent c9385ee commit 82de4fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/opcache/ZendAccelerator.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1961,8 +1961,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
19611961
ZCG(cache_opline) = NULL;
19621962
ZCG(cache_persistent_script) = NULL;
19631963
return file_cache_compile_file(file_handle, type);
1964-
} else if (!ZCG(accelerator_enabled) ||
1965-
(ZCSG(restart_in_progress) && accel_restart_is_active())) {
1964+
} else if ((ZCSG(restart_in_progress) && accel_restart_is_active())) {
19661965
if (ZCG(accel_directives).file_cache) {
19671966
return file_cache_compile_file(file_handle, type);
19681967
}

0 commit comments

Comments
 (0)