mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
Prefer MySQLi over MySQL
Summary: Makes sense with `QueryFuture`. Test Plan: Switched secure.phabricator.com to MySQLi and nothing exploded. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5066
This commit is contained in:
parent
e9b5eb8609
commit
c1f234759b
2 changed files with 6 additions and 2 deletions
|
@ -174,7 +174,9 @@ return array(
|
|||
// Phabricator supports PHP extensions MySQL and MySQLi. It is possible to
|
||||
// implement also other access mechanism (e.g. PDO_MySQL). The class must
|
||||
// extend AphrontMySQLDatabaseConnectionBase.
|
||||
'mysql.implementation' => 'AphrontMySQLDatabaseConnection',
|
||||
'mysql.implementation' => (extension_loaded('mysqli')
|
||||
? 'AphrontMySQLiDatabaseConnection'
|
||||
: 'AphrontMySQLDatabaseConnection'),
|
||||
|
||||
|
||||
// -- Notifications --------------------------------------------------------- //
|
||||
|
|
|
@ -43,7 +43,9 @@ final class PhabricatorMySQLConfigOptions
|
|||
$this->newOption(
|
||||
'mysql.implementation',
|
||||
'class',
|
||||
'AphrontMySQLDatabaseConnection')
|
||||
(extension_loaded('mysqli')
|
||||
? 'AphrontMySQLiDatabaseConnection'
|
||||
: 'AphrontMySQLDatabaseConnection'))
|
||||
->setLocked(true)
|
||||
->setBaseClass('AphrontMySQLDatabaseConnectionBase')
|
||||
->setSummary(
|
||||
|
|
Loading…
Reference in a new issue