mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge pull request #3411 from Senky/ticket/13570
[ticket/13570] Mysqli extension supports persistent connection since PHP 5.3.0 * Senky/ticket/13570: [ticket/13570] Remove unnecessary ternary condition from mysqli driver
This commit is contained in:
commit
f3d332b78f
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||||
return $this->sql_error('');
|
return $this->sql_error('');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mysqli extension supports persistent connection since PHP 5.3.0
|
$this->persistency = $persistency;
|
||||||
$this->persistency = (version_compare(PHP_VERSION, '5.3.0', '>=')) ? $persistency : false;
|
|
||||||
$this->user = $sqluser;
|
$this->user = $sqluser;
|
||||||
|
|
||||||
// If persistent connection, set dbhost to localhost when empty and prepend it with 'p:' prefix
|
// If persistent connection, set dbhost to localhost when empty and prepend it with 'p:' prefix
|
||||||
|
|
Loading…
Add table
Reference in a new issue