Bug #78185 [Opn]: File cache no longer works

From: Date: Thu, 20 Jun 2019 05:14:54 +0000
Subject: Bug #78185 [Opn]: File cache no longer works
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221403@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78185&edit=1 ID: 78185 Updated by: krakjoe@php.net Reported by: cmb@php.net Summary: File cache no longer works Status: Open Type: Bug Package: opcache Operating System: Windows PHP Version: 7.3.7RC2 Block user comment: N Private report: N New Comment: 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 ... Previous Comments: ------------------------------------------------------------------------ [2019-06-20 04:52:23] krakjoe@php.net 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 ... ------------------------------------------------------------------------ [2019-06-19 21:22:10] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78185&edit=1

« previous php.bugs (#221403) next »