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:
Remi Collet 2012-12-03 15:35:15 +01:00
commit 65973c240e

View File

@ -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().