Skip to content

Commit 527bf4d

Browse files
committed
Fix test runs with Opcache enabled PHP on top
Writing to the same file, while it's cached, is an issue.
1 parent 19363de commit 527bf4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

run-tests.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ function write_information($show_html)
273273
$phpdbg_info = '';
274274
}
275275

276+
if (function_exists('opcache_invalidate')) {
277+
opcache_invalidate($info_file, true);
278+
}
276279
@unlink($info_file);
277280

278281
// load list of enabled extensions
@@ -293,6 +296,9 @@ function write_information($show_html)
293296
}
294297
}
295298

299+
if (function_exists('opcache_invalidate')) {
300+
opcache_invalidate($info_file, true);
301+
}
296302
@unlink($info_file);
297303

298304
// Write test context information.

0 commit comments

Comments
 (0)