Skip to content

Commit c8c8a64

Browse files
committed
bugfix version detection
1 parent ce4aa76 commit c8c8a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/MysqlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function checkVersion($db)
4747
$major = 5;
4848
$minor = 5;
4949
$version = mysqli_get_server_version($db);
50-
$v = array(floor($version/10000),floor($version/100));
50+
$v = array(floor($version/10000),floor(($version%10000)/100));
5151
if ($v[0]<$major || ($v[0]==$major && $v[1]<$minor)) {
5252
die("Detected MySQL $v[0].$v[1], but only $major.$minor and up are supported\n");
5353
}

0 commit comments

Comments
 (0)