Permalink
Browse files

Update Driver/PDODblib/Driver.php

Added PHP_OS != 'Darwin' condition to connect()
  • Loading branch information...
arms
arms committed Jan 18, 2013
1 parent 84fa79b commit 977ff273be846aa691052fe5a1e469b5c794b8e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 Driver/PDODblib/Driver.php
@@ -26,7 +26,7 @@ class Driver implements \Doctrine\DBAL\Driver
*/
public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
{
- if (stristr(PHP_OS, 'WIN')) {
+ if (stristr(PHP_OS, 'WIN') && PHP_OS != 'Darwin') {
$conn = new \Doctrine\DBAL\Driver\PDOConnection(
$this->_constructPdoDsn($params),
$username,

0 comments on commit 977ff27

Please sign in to comment.