Skip to content

Commit 30641d6

Browse files
committed
remove file_cache_only
1 parent 824e638 commit 30641d6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ext/opcache/tests/gt16979.phpt

Lines changed: 1 addition & 2 deletions
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--
@@ -24,5 +23,5 @@ var_dump(
2423

2524
?>
2625
--EXPECT--
27-
bool(false)
26+
bool(true)
2827
bool(true)

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)