Bring back test case support for older MySQL versions
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 11 Jan 2020 09:36:52 +0000 (10:36 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 11 Jan 2020 10:21:26 +0000 (11:21 +0100)
commit0ab53f163658fe77110d967dd7fa2e3f8db5246e
tree0947e0a38c0b34916cd19b90f53c7bf24612a35e
parent1ef8d5d65b3e65226e31e75e75b3e42ab31d05b7
Bring back test case support for older MySQL versions

These test cases have recently been adjusted to work with MySQL 8[1],
but some older, but still supported database versions, such as MySQL
5.6, still need the password to be sent hashed, so we fall back to
using `PASSWORD()`, if the `SET PASSWORD` query fails without it.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=b0efd18f7844da29931737b8a1cf461c7493e168>.
ext/mysqli/tests/mysqli_expire_password.phpt
ext/mysqli/tests/mysqli_pconn_max_links.phpt