summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-07-21 00:49:35 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-07-21 00:49:35 +0200
commitb1643e166d039057cdefb9a5a5420d165f2b2e05 (patch)
tree8dbf9d1ddce4c4053687cc9607e5a303b0b3d633 /run-tests.php
parentf5227c5863a79cb219902f32aaebacac77a6e133 (diff)
downloadphp-git-b1643e166d039057cdefb9a5a5420d165f2b2e05.tar.gz
Fix failed tests for phar
- when $status is boolean, E_NOTICE appears and tests fail - opcache is never enabled on these tests anyway. - Add opcache.revalidate_freq=0 to testing script Instead of checking this in the tests files it can be used directly in the main testing script. Also this fixes failed tests. - Use opcache_invalidate() instead of sleep() delay in some tests. Some delays are still used since the opcache_invalidate seems to be buggy and not working as expected. Closes GH-4392
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 84dccd7380..2c11961a05 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -258,6 +258,7 @@ NO_PROC_OPEN_ERROR;
'log_errors_max_len=0',
'opcache.fast_shutdown=0',
'opcache.file_update_protection=0',
+ 'opcache.revalidate_freq=0',
'zend.assertions=1',
);