com php-src: Fixed bug #78185 (File cache no longer works): ext/opcache/ZendAccelerator.c

From: Date: Thu, 20 Jun 2019 10:22:53 +0000
Subject: com php-src: Fixed bug #78185 (File cache no longer works): ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106946@lists.php.net to get a copy of this message
Commit: 525c80ec74305f49545ee109f47fdfa495b24aee Author: Dmitry Stogov <dmitry@zend.com> Thu, 20 Jun 2019 09:04:14 +0300 Committer: Christoph M. Becker <cmbecker69@gmx.de> Thu, 20 Jun 2019 12:22:53 +0200 Parents: 770db7e68c62126d6ff9010eb650344716d2825d Branches: PHP-7.3.7 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=525c80ec74305f49545ee109f47fdfa495b24aee Log: Fixed bug #78185 (File cache no longer works) (cherry picked from commit cd6a6e4cf2677bfbe2a21164239737eb22bd4da6) Bugs: https://bugs.php.net/78185 Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 8ba2427..4baa779 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1918,6 +1918,13 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type) /* The Accelerator is disabled, act as if without the Accelerator */ ZCG(cache_opline) = NULL; ZCG(cache_persistent_script) = NULL; +#ifdef HAVE_OPCACHE_FILE_CACHE + if (file_handle->filename + && ZCG(accel_directives).file_cache + && ZCG(enabled) && accel_startup_ok) { + return file_cache_compile_file(file_handle, type); + } +#endif return accelerator_orig_compile_file(file_handle, type); #ifdef HAVE_OPCACHE_FILE_CACHE } else if (file_cache_only) {

« previous php.cvs (#106946) next »