mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
Merge branch 'PHP-5.5'
* PHP-5.5: Reduce case where this test will fails: - no connection AND no mysqli extension
This commit is contained in:
commit
65973c240e
@ -29,7 +29,8 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
|
||||
$expected['MYSQL_ATTR_READ_DEFAULT_GROUP'] = true;
|
||||
}
|
||||
|
||||
if (extension_loaded('mysqli') && stristr(mysqli_get_client_info(), "mysqlnd")
|
||||
if (extension_loaded('mysqli')
|
||||
&& (stristr(mysqli_get_client_info(), "mysqlnd") || mysqli_get_client_version() > 50605)
|
||||
|| MySQLPDOTest::getClientVersion(MySQLPDOTest::factory()) > 50605) {
|
||||
/* XXX the MySQL client library version isn't exposed with any
|
||||
constants, the single possibility is to use the PDO::getAttribute().
|
||||
|
Loading…
Reference in New Issue
Block a user