diff options
Diffstat (limited to 'libs/Zend/Db/Adapter/Mysqli.php')
-rw-r--r-- | libs/Zend/Db/Adapter/Mysqli.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/Zend/Db/Adapter/Mysqli.php b/libs/Zend/Db/Adapter/Mysqli.php index e94ec26b37..9eb3d7f482 100644 --- a/libs/Zend/Db/Adapter/Mysqli.php +++ b/libs/Zend/Db/Adapter/Mysqli.php @@ -346,6 +346,8 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract } } + $socket = !empty($this->_config['unix_socket']) ? $this->_config['unix_socket'] : null; + // Suppress connection warnings here. // Throw an exception instead. $_isConnected = @mysqli_real_connect( @@ -355,7 +357,7 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract $this->_config['password'], $this->_config['dbname'], $port, - $socket = null, + $socket, $enable_ssl ? $flags : null ); |