Skip to content

Commit 6cf19dc

Browse files
committed
remove file_cache_only
1 parent 824e638 commit 6cf19dc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ext/opcache/tests/gt16979.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ opcache.enable_cli=1
66
opcache.jit=disable
77
opcache.jit_buffer_size=0
88
opcache.file_cache={TMP}
9-
opcache.file_cache_only=1
109
--EXTENSIONS--
1110
opcache
1211
--FILE--

ext/opcache/zend_accelerator_module.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,9 +1026,8 @@ ZEND_FUNCTION(opcache_is_script_cached)
10261026
RETURN_FALSE;
10271027
}
10281028

1029-
if (!ZCG(accelerator_enabled) &&
1030-
!(file_cache && ZCG(accel_directives).file_cache_read_only)) {
1031-
RETURN_FALSE;
1029+
if (!ZCG(accelerator_enabled)) {
1030+
RETURN_FALSE;
10321031
}
10331032

10341033
if (file_cache) {

0 commit comments

Comments
 (0)