Skip to content

Commit 06b1305

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Make MySQLPDOTest::extractVersion() more liberal
2 parents f83c207 + fc9cdb7 commit 06b1305

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/pdo_mysql/tests/mysql_pdo_test.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class MySQLPDOTest extends PDOTest {
107107

108108
// stinky string which we need to parse
109109
$parts = explode('.', $version_string);
110-
if (count($parts) != 3)
110+
if (count($parts) < 3)
111111
return -1;
112112

113113
$version = (int)$parts[0] * 10000;

ext/pdo_mysql/tests/pdo_mysql_exec.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ MySQLPDOTest::skip();
7575
exec_and_count(19, $db, 'CREATE PROCEDURE p(OUT ver_param VARCHAR(255)) BEGIN SELECT VERSION() INTO ver_param; END;', 0);
7676
// we got this far without problems. If there's an issue from now on, its a failure
7777
$ignore_exception = false;
78-
exec_and_count(20, $db, 'CALL p(@version)', 0);
78+
exec_and_count(20, $db, 'CALL p(@version)', 1);
7979
$stmt = $db->query('SELECT @version AS p_version');
8080
$tmp = $stmt->fetchAll(PDO::FETCH_ASSOC);
8181
if (count($tmp) > 1 || !isset($tmp[0]['p_version'])) {

0 commit comments

Comments
 (0)