Skip to content

Commit 589f810

Browse files
committed
Fix remaining AppVeyor test failures due to the image update
1 parent 6043a2d commit 589f810

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

ext/bcmath/tests/bug72093-win32.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ if(!extension_loaded("bcmath")) print "skip";
66
if (substr(PHP_OS, 0, 3) != 'WIN') {
77
die('skip valid only for windows');
88
}
9+
10+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
11+
$req = "10.0.17134";
12+
if (version_compare($cur, $req) >= 0) {
13+
echo "skip Only for Windows systems < $req";
14+
}
15+
916
?>
1017
--FILE--
1118
<?php

ext/bcmath/tests/bug72093.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
44
<?php
55
if(!extension_loaded("bcmath")) print "skip";
66
if (substr(PHP_OS, 0, 3) == 'WIN') {
7-
die('skip Not valid for windows');
7+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
8+
$req = "10.0.17134";
9+
if (version_compare($cur, $req) < 0) {
10+
echo "skip Compatible on Windows systems >= $req";
11+
}
812
}
913
?>
1014
--FILE--

ext/bcmath/tests/bug75178-win32.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
66
if (substr(PHP_OS, 0, 3) != 'WIN') {
77
die('skip valid only for windows');
88
}
9+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
10+
$req = "10.0.17134";
11+
if (version_compare($cur, $req) >= 0) {
12+
echo "skip Only for Windows systems < $req";
13+
}
914
?>
1015
--FILE--
1116
<?php

ext/bcmath/tests/bug75178.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
44
<?php
55
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
66
if (substr(PHP_OS, 0, 3) == 'WIN') {
7-
die('skip Not valid for windows');
7+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
8+
$req = "10.0.17134";
9+
if (version_compare($cur, $req) < 0) {
10+
echo "skip Compatible on Windows systems >= $req";
11+
}
812
}
913
?>
1014
--FILE--

0 commit comments

Comments
 (0)