|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2019-06-19 21:22 UTC] cmb@php.net
 Description: ------------ If I enable opcache.file_cache_only, phpinfo reports that the file cache is enabled, but no cache files are created. This worked with PHP 7.3.7RC1, but no longer with 7.3.7RC2. I have not checked PHP 7.2.20RC2, but it is likely affected as well. Patchesfile-cache-fix.patch (last revision 2019-06-20 05:47 UTC by krakjoe@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
This looks highly suspect: @@ -2342,6 +2360,7 @@ static void accel_activate(void) #ifdef HAVE_OPCACHE_FILE_CACHE if (file_cache_only) { + ZCG(accelerator_enabled) = 0; return; } #endif extracted from diff of the two tags ...Try this (patch probably won't apply on 7.3 branch) ... diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 85e0de94dd..52eab0d775 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -2315,7 +2315,7 @@ int accel_activate(INIT_FUNC_ARGS) ZCG(cwd_check) = 1; if (file_cache_only) { - ZCG(accelerator_enabled) = 0; + ZCG(accelerator_enabled) = 1; return SUCCESS; } I'm pretty sure that's the problem ...