From 589f8107e8fc3459e4c97bc7933f017ec997a416 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 19 May 2018 11:43:19 +0200 Subject: Fix remaining AppVeyor test failures due to the image update --- ext/bcmath/tests/bug72093-win32.phpt | 7 +++++++ ext/bcmath/tests/bug72093.phpt | 6 +++++- ext/bcmath/tests/bug75178-win32.phpt | 5 +++++ ext/bcmath/tests/bug75178.phpt | 6 +++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ext/bcmath/tests/bug72093-win32.phpt b/ext/bcmath/tests/bug72093-win32.phpt index a9b2077823..7b1d3b9d9f 100644 --- a/ext/bcmath/tests/bug72093-win32.phpt +++ b/ext/bcmath/tests/bug72093-win32.phpt @@ -6,6 +6,13 @@ if(!extension_loaded("bcmath")) print "skip"; if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip valid only for windows'); } + +$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD; +$req = "10.0.17134"; +if (version_compare($cur, $req) >= 0) { + echo "skip Only for Windows systems < $req"; +} + ?> --FILE-- = $req"; + } } ?> --FILE-- diff --git a/ext/bcmath/tests/bug75178-win32.phpt b/ext/bcmath/tests/bug75178-win32.phpt index bae590fb5b..bddb8e236f 100644 --- a/ext/bcmath/tests/bug75178-win32.phpt +++ b/ext/bcmath/tests/bug75178-win32.phpt @@ -6,6 +6,11 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available'); if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip valid only for windows'); } +$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD; +$req = "10.0.17134"; +if (version_compare($cur, $req) >= 0) { + echo "skip Only for Windows systems < $req"; +} ?> --FILE-- = $req"; + } } ?> --FILE-- -- cgit v1.2.1