Skip to content

Commit

Permalink
Merge pull request #455 from kimhemsoe/mysqli_mysqlnd_only_constant
Browse files Browse the repository at this point in the history
[Mysqli] MYSQLI_SERVER_PUBLIC_KEY only exist for php5.5.0 or creater wit...
  • Loading branch information
beberlei committed Dec 22, 2013
2 parents ba4ab89 + 626b47d commit 37e7727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
Expand Up @@ -182,7 +182,7 @@ private function setDriverOptions(array $driverOptions = array())
\MYSQLI_READ_DEFAULT_GROUP,
);

if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
if (defined('MYSQLI_SERVER_PUBLIC_KEY')) {
$supportedDriverOptions[] = \MYSQLI_SERVER_PUBLIC_KEY;
}

Expand Down

0 comments on commit 37e7727

Please sign in to comment.