From 527bf4d8e6c162d3180464398c94f6bb36b3d42f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 13 Jan 2017 14:37:37 +0100 Subject: [PATCH] Fix test runs with Opcache enabled PHP on top Writing to the same file, while it's cached, is an issue. --- run-tests.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-tests.php b/run-tests.php index 40162881c5..d8d24cf548 100755 --- a/run-tests.php +++ b/run-tests.php @@ -273,6 +273,9 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n" $phpdbg_info = ''; } + if (function_exists('opcache_invalidate')) { + opcache_invalidate($info_file, true); + } @unlink($info_file); // load list of enabled extensions @@ -293,6 +296,9 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n" } } + if (function_exists('opcache_invalidate')) { + opcache_invalidate($info_file, true); + } @unlink($info_file); // Write test context information. -- 2.40.0