Commit 8cea3047 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

[Mysqli] MYSQLI_SERVER_PUBLIC_KEY only exist for php5.5.0 or creater with mysqlnd.

parent ba4ab893
...@@ -182,7 +182,8 @@ class MysqliConnection implements Connection, PingableConnection ...@@ -182,7 +182,8 @@ class MysqliConnection implements Connection, PingableConnection
\MYSQLI_READ_DEFAULT_GROUP, \MYSQLI_READ_DEFAULT_GROUP,
); );
if (version_compare(PHP_VERSION, '5.5.0') >= 0) { // Added in php 5.5 compiled with mysqlnd only.
if (defined('MYSQLI_SERVER_PUBLIC_KEY')) {
$supportedDriverOptions[] = \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