com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/ZendAccelerator.c

From: Date: Thu, 20 Jun 2019 06:07:39 +0000
Subject: com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106923@lists.php.net to get a copy of this message
Commit: 05c8f1ff2e34e76cfe38ae2a03d43f428fa7194e Author: Dmitry Stogov <dmitry@zend.com> Thu, 20 Jun 2019 09:07:39 +0300 Parents: 8743d5e99acd59504bdf34e65d2ba25f20d76970 35acda856a991378c2d9c22f37c62affb0d1ab8a Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=05c8f1ff2e34e76cfe38ae2a03d43f428fa7194e Log: Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Fixed bug #78185 (File cache no longer works) Bugs: https://bugs.php.net/78185 Changed paths: MM ext/opcache/ZendAccelerator.c Diff: diff --cc ext/opcache/ZendAccelerator.c index 85e0de9,4baa779..c8f640b --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator..c @@@ -1892,7 -1918,15 +1892,12 @@@ zend_op_array *persistent_compile_file( /* 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) { ZCG(cache_opline) = NULL; ZCG(cache_persistent_script) = NULL;

« previous php.cvs (#106923) next »