summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/tests/bug_39858.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_mysql/tests/bug_39858.phpt')
-rw-r--r--ext/pdo_mysql/tests/bug_39858.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/bug_39858.phpt b/ext/pdo_mysql/tests/bug_39858.phpt
index 24da13a4e2..8b073997e1 100644
--- a/ext/pdo_mysql/tests/bug_39858.phpt
+++ b/ext/pdo_mysql/tests/bug_39858.phpt
@@ -13,10 +13,10 @@ $matches = array();
if (!preg_match('/^(\d+)\.(\d+)\.(\d+)/ismU', $row['_version'], $matches))
die(sprintf("skip Cannot determine MySQL Server version\n"));
-$version = $matches[0] * 10000 + $matches[1] * 100 + $matches[2];
+$version = $matches[1] * 10000 + $matches[2] * 100 + $matches[3];
if ($version < 50000)
die(sprintf("skip Need MySQL Server 5.0.0+, found %d.%02d.%02d (%d)\n",
- $matches[0], $matches[1], $matches[2], $version));
+ $matches[1], $matches[2], $matches[3], $version));
?>
--FILE--
<?php