Skip to content

Commit cd6a6e4

Browse files
committed
Fixed bug #78185 (File cache no longer works)
1 parent 82021ad commit cd6a6e4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PHP NEWS
99
- Date:
1010
. Fixed #69044 (discrepency between time and microtime). (krakjoe)
1111

12+
- Opcache:
13+
. Fixed bug #78185 (File cache no longer works). (Dmitry)
14+
1215
27 Jun 2019, PHP 7.2.20
1316

1417
- Core:

ext/opcache/ZendAccelerator.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,13 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
17721772
/* The Accelerator is disabled, act as if without the Accelerator */
17731773
ZCG(cache_opline) = NULL;
17741774
ZCG(cache_persistent_script) = NULL;
1775+
#ifdef HAVE_OPCACHE_FILE_CACHE
1776+
if (file_handle->filename
1777+
&& ZCG(accel_directives).file_cache
1778+
&& ZCG(enabled) && accel_startup_ok) {
1779+
return file_cache_compile_file(file_handle, type);
1780+
}
1781+
#endif
17751782
return accelerator_orig_compile_file(file_handle, type);
17761783
#ifdef HAVE_OPCACHE_FILE_CACHE
17771784
} else if (file_cache_only) {

0 commit comments

Comments
 (0)