From: Anatol Belski Date: Fri, 13 Jan 2017 13:37:37 +0000 (+0100) Subject: Fix test runs with Opcache enabled PHP on top X-Git-Tag: php-7.1.2RC1~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=527bf4d8e6c162d3180464398c94f6bb36b3d42f;p=php Fix test runs with Opcache enabled PHP on top Writing to the same file, while it's cached, is an issue. --- 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.