Commit 000b5a73 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Merge pull request #698 from deeky666/support-hhvm-mysqli-driver

[DBAL-1014] Support HHVM mysqli driver
parents 3149a9fd c840beba
......@@ -45,8 +45,6 @@ matrix:
env: DB=sqlite
- php: hhvm
env: DB=mysql
- php: hhvm
env: DB=mysqli
- php: hhvm-nightly
exclude:
- php: hhvm
......
......@@ -50,6 +50,12 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
public function __construct(array $params, $username, $password, array $driverOptions = array())
{
$port = isset($params['port']) ? $params['port'] : ini_get('mysqli.default_port');
// Fallback to default MySQL port if not given.
if ( ! $port) {
$port = 3306;
}
$socket = isset($params['unix_socket']) ? $params['unix_socket'] : ini_get('mysqli.default_socket');
$dbname = isset($params['dbname']) ? $params['dbname'] : null;
......
......@@ -39,6 +39,8 @@ class DBAL421Test extends \Doctrine\Tests\DbalFunctionalTestCase
$this->assertNotContains($guid, $guids, "Duplicate GUID detected");
$guids[] = $guid;
}
$statement->closeCursor();
}
private function getSelectGuidSql()
......
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