mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +02:00
MySqliDriver: coalesced password to an empty string (#360)
mysqli::real_connect() expects parameter 3 to be string, yields an error on NULL.
This commit is contained in:
@@ -91,7 +91,7 @@ class MySqliDriver implements Dibi\Driver
|
|||||||
@$this->connection->real_connect( // intentionally @
|
@$this->connection->real_connect( // intentionally @
|
||||||
(empty($config['persistent']) ? '' : 'p:') . $config['host'],
|
(empty($config['persistent']) ? '' : 'p:') . $config['host'],
|
||||||
$config['username'],
|
$config['username'],
|
||||||
$config['password'],
|
$config['password'] ?? '',
|
||||||
$config['database'] ?? '',
|
$config['database'] ?? '',
|
||||||
$config['port'] ?? 0,
|
$config['port'] ?? 0,
|
||||||
$config['socket'],
|
$config['socket'],
|
||||||
|
Reference in New Issue
Block a user