mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-20 18:28:55 +00:00
[ticket/13740] Use DBAL for retrieving DB version
PHPBB3-13740
This commit is contained in:
parent
0f5f62f8db
commit
02029fe161
1 changed files with 3 additions and 4 deletions
|
@ -394,7 +394,7 @@ class database
|
|||
switch ($dbms)
|
||||
{
|
||||
case 'mysqli':
|
||||
if (version_compare(mysqli_get_server_info($db->get_db_connect_id()), '4.1.3', '<'))
|
||||
if (version_compare($db->sql_server_info(), '4.1.3', '<'))
|
||||
{
|
||||
$errors[] = array(
|
||||
'title' => 'INST_ERR_DB_NO_MYSQLI',
|
||||
|
@ -402,7 +402,7 @@ class database
|
|||
}
|
||||
break;
|
||||
case 'sqlite':
|
||||
if (version_compare(sqlite_libversion(), '2.8.2', '<'))
|
||||
if (version_compare($db->sql_server_info(), '2.8.2', '<'))
|
||||
{
|
||||
$errors[] = array(
|
||||
'title' => 'INST_ERR_DB_NO_SQLITE',
|
||||
|
@ -410,8 +410,7 @@ class database
|
|||
}
|
||||
break;
|
||||
case 'sqlite3':
|
||||
$version = \SQLite3::version();
|
||||
if (version_compare($version['versionString'], '3.6.15', '<'))
|
||||
if (version_compare($db->sql_server_info(), '3.6.15', '<'))
|
||||
{
|
||||
$errors[] = array(
|
||||
'title' => 'INST_ERR_DB_NO_SQLITE3',
|
||||
|
|
Loading…
Add table
Reference in a new issue