Commit 37e7727c authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #455 from kimhemsoe/mysqli_mysqlnd_only_constant

[Mysqli] MYSQLI_SERVER_PUBLIC_KEY only exist for php5.5.0 or creater wit...
parents ba4ab893 626b47d6
......@@ -182,7 +182,7 @@ class MysqliConnection implements Connection, PingableConnection
\MYSQLI_READ_DEFAULT_GROUP,
);
if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
if (defined('MYSQLI_SERVER_PUBLIC_KEY')) {
$supportedDriverOptions[] = \MYSQLI_SERVER_PUBLIC_KEY;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment