Skip to content

Commit

Permalink
remove file_cache_only
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacarpet committed Nov 28, 2024
1 parent 824e638 commit 6cf19dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion ext/opcache/tests/gt16979.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ opcache.enable_cli=1
opcache.jit=disable
opcache.jit_buffer_size=0
opcache.file_cache={TMP}
opcache.file_cache_only=1
--EXTENSIONS--
opcache
--FILE--
Expand Down
5 changes: 2 additions & 3 deletions ext/opcache/zend_accelerator_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,9 +1026,8 @@ ZEND_FUNCTION(opcache_is_script_cached)
RETURN_FALSE;
}

if (!ZCG(accelerator_enabled) &&
!(file_cache && ZCG(accel_directives).file_cache_read_only)) {
RETURN_FALSE;
if (!ZCG(accelerator_enabled)) {
RETURN_FALSE;
}

if (file_cache) {
Expand Down

0 comments on commit 6cf19dc

Please sign in to comment.