Skip to content

Commit e5db468

Browse files
committed
ext/opcache/ZendAccelerator: remove redundant check
The "accelerator_enabled" flag has been checked already in the previous "if".
1 parent 84765ad commit e5db468

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 2 deletions
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)