diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-07-21 00:49:35 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-07-21 00:49:35 +0200 |
commit | b1643e166d039057cdefb9a5a5420d165f2b2e05 (patch) | |
tree | 8dbf9d1ddce4c4053687cc9607e5a303b0b3d633 /run-tests.php | |
parent | f5227c5863a79cb219902f32aaebacac77a6e133 (diff) | |
download | php-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-x | run-tests.php | 1 |
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', ); |