Permalink
Browse files

Removing wonky and most likely incorrect manipulation of socket and port

setting mangling in DboMysqli.  Fixes #1478
  • Loading branch information...
1 parent 7032729 commit 32f0b20a336074b8d09d912e8e1a2b07aa8d7f0e @markstory markstory committed Jan 25, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −7 cake/libs/model/datasources/dbo/dbo_mysqli.php
@@ -59,13 +59,6 @@ function connect() {
$config = $this->config;
$this->connected = false;
- if (is_numeric($config['port'])) {
- $config['socket'] = null;
- } else {
- $config['socket'] = $config['port'];
- $config['port'] = null;
- }
-
$this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], $config['database'], $config['port'], $config['socket']);
if ($this->connection !== false) {

0 comments on commit 32f0b20

Please sign in to comment.