1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17509] Add MariaDB version requirement check

PHPBB-17509
This commit is contained in:
rxu
2025-05-30 11:54:32 +07:00
parent b8e5caedbf
commit f23af6f485
2 changed files with 12 additions and 2 deletions

View File

@@ -410,12 +410,21 @@ class database
switch ($dbms)
{
case 'mysqli':
if (version_compare($db_server_version, '5.6', '<'))
if (stripos($db->sql_server_info(), 'mariadb') !== false && version_compare($db_server_version, '10.2.7', '<'))
{
$errors[] = array(
'title' => 'INST_ERR_DB_NO_MYSQLI',
'title' => 'INST_ERR_DB_NO_MARIADB',
);
}
else
{
if (version_compare($db_server_version, '5.6', '<'))
{
$errors[] = array(
'title' => 'INST_ERR_DB_NO_MYSQLI',
);
}
}
break;
case 'sqlite3':
if (version_compare($db_server_version, '3.8.3', '<'))