We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79726be + f85ae48 commit 8b6e0c4Copy full SHA for 8b6e0c4
ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt
@@ -29,6 +29,14 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
29
$expected['MYSQL_ATTR_READ_DEFAULT_GROUP'] = true;
30
}
31
32
+ if (extension_loaded('mysqli') && stristr(mysqli_get_client_info(), "mysqlnd")
33
+ || MySQLPDOTest::getClientVersion(MySQLPDOTest::factory()) > 50605) {
34
+ /* XXX the MySQL client library version isn't exposed with any
35
+ constants, the single possibility is to use the PDO::getAttribute().
36
+ This however will fail with no connection. */
37
+ $expected['MYSQL_ATTR_SERVER_PUBLIC_KEY'] = true;
38
+ }
39
+
40
/*
41
TODO
42
0 commit comments