mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing wonky and most likely incorrect manipulation of socket and port
setting mangling in DboMysqli. Fixes #1478
This commit is contained in:
parent
7032729651
commit
32f0b20a33
1 changed files with 0 additions and 7 deletions
|
@ -59,13 +59,6 @@ class DboMysqli extends DboMysqlBase {
|
|||
$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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue