]> granicus.if.org Git - php/commit
Make MySQLPDOTest::extractVersion() more liberal
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 28 Apr 2019 21:48:27 +0000 (23:48 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 28 Apr 2019 21:48:27 +0000 (23:48 +0200)
commitfc9cdb723bcd02dfdb83962ca1eda57ec4c10296
tree45445fa95db191e84fa7e87b04a66c27582e3735
parent6d8892aacda5a24362ed5368812cba6427006c5d
Make MySQLPDOTest::extractVersion() more liberal

MySQL/MariaDB version strings may have suffixes which may contain dots;
for instance, Debian stretch has 5.5.5-10.1.37-MariaDB-0+deb9u1 or
such.  Therefore, we make the version extraction more liberal, and only
require that there are at least three parts separated by dot, and
ignore additional parts.

We also fix an erroneous test expectation, which would be triggered on
CI now, right away.  This patch has been provided by petk@.
ext/pdo_mysql/tests/mysql_pdo_test.inc
ext/pdo_mysql/tests/pdo_mysql_exec.phpt