File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ if(!extension_loaded("bcmath")) print "skip";
6
6
if (substr (PHP_OS , 0 , 3 ) != 'WIN ' ) {
7
7
die ('skip valid only for windows ' );
8
8
}
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
+
9
16
?>
10
17
--FILE--
11
18
<?php
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
4
4
<?php
5
5
if (!extension_loaded ("bcmath " )) print "skip " ;
6
6
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
+ }
8
12
}
9
13
?>
10
14
--FILE--
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6
6
if (substr (PHP_OS , 0 , 3 ) != 'WIN ' ) {
7
7
die ('skip valid only for windows ' );
8
8
}
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
+ }
9
14
?>
10
15
--FILE--
11
16
<?php
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
4
4
<?php
5
5
if (!extension_loaded ('bcmath ' )) die ('skip bcmath extension is not available ' );
6
6
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
+ }
8
12
}
9
13
?>
10
14
--FILE--
You can’t perform that action at this time.
0 commit comments