Skip to content

Commit e8d7427

Browse files
committed
fix for file_cache_only
1 parent f620d9c commit e8d7427

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,12 @@ ZEND_FUNCTION(opcache_is_script_cached_in_file_cache)
10371037
RETURN_FALSE;
10381038
}
10391039

1040-
if (!ZCG(accelerator_enabled) || !ZCG(accel_directives).file_cache) {
1040+
// account for accelerator_enabled = false when file_cache_only = true
1041+
if (!(ZCG(accelerator_enabled) || ZCG(accel_directives).file_cache_only)) {
1042+
RETURN_FALSE;
1043+
}
1044+
1045+
if (!ZCG(accel_directives).file_cache) {
10411046
RETURN_FALSE;
10421047
}
10431048

0 commit comments

Comments
 (0)