com php-src: Fix test runs with Opcache enabled PHP on top: run-tests.php
| From: | Anatol Belski | Date: | Fri, 13 Jan 2017 13:37:37 +0000 |
| Subject: | com php-src: Fix test runs with Opcache enabled PHP on top: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96714@lists.php.net to get a copy of this message | ||
Commit: 527bf4d8e6c162d3180464398c94f6bb36b3d42f
Author: Anatol Belski <ab@php.net> Fri, 13 Jan 2017 14:37:37 +0100
Parents: 19363de12f663f20a6e0e9969c55710ca3c9fe4f
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=527bf4d8e6c162d3180464398c94f6bb36b3d42f
Log:
Fix test runs with Opcache enabled PHP on top
Writing to the same file, while it's cached, is an issue.
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 4016288..d8d24cf 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.