diff options
author | Anatol Belski <ab@php.net> | 2018-05-19 11:43:19 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-05-19 11:43:19 +0200 |
commit | 589f8107e8fc3459e4c97bc7933f017ec997a416 (patch) | |
tree | e86e0eb2dd429224eabe7f3232a82b49336f5e13 | |
parent | 6043a2d6f74bf5125573fde198070ac9804d5e6e (diff) | |
download | php-git-589f8107e8fc3459e4c97bc7933f017ec997a416.tar.gz |
Fix remaining AppVeyor test failures due to the image update
-rw-r--r-- | ext/bcmath/tests/bug72093-win32.phpt | 7 | ||||
-rw-r--r-- | ext/bcmath/tests/bug72093.phpt | 6 | ||||
-rw-r--r-- | ext/bcmath/tests/bug75178-win32.phpt | 5 | ||||
-rw-r--r-- | 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-- <?php diff --git a/ext/bcmath/tests/bug72093.phpt b/ext/bcmath/tests/bug72093.phpt index 911af5698f..a8b6471098 100644 --- a/ext/bcmath/tests/bug72093.phpt +++ b/ext/bcmath/tests/bug72093.phpt @@ -4,7 +4,11 @@ Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition <?php if(!extension_loaded("bcmath")) print "skip"; if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid 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 Compatible on Windows systems >= $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-- <?php diff --git a/ext/bcmath/tests/bug75178.phpt b/ext/bcmath/tests/bug75178.phpt index bdfa25a2e1..c56b54f209 100644 --- a/ext/bcmath/tests/bug75178.phpt +++ b/ext/bcmath/tests/bug75178.phpt @@ -4,7 +4,11 @@ Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus) <?php if (!extension_loaded('bcmath')) die('skip bcmath extension is not available'); if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not valid 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 Compatible on Windows systems >= $req"; + } } ?> --FILE-- |