From: Alexander Ebert Date: Tue, 18 Jul 2017 13:34:15 +0000 (+0200) Subject: Improved setup access, allow MariaDB 5.5.47+ X-Git-Tag: 3.0.8~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=643cb983031c6b2b38fc3877d4a70898b13a0f80;p=GitHub%2FWoltLab%2FWCF.git Improved setup access, allow MariaDB 5.5.47+ Closes #2341 --- diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index e4c1638211..4a0648aa94 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -667,9 +667,17 @@ class WCFSetup extends WCF { $sqlVersion = $db->getVersion(); $compareSQLVersion = preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $sqlVersion); if (stripos($sqlVersion, 'MariaDB')) { - // MariaDB 10.0.22+ - if (!(version_compare($compareSQLVersion, '10.0.22') >= 0)) { - throw new SystemException("Insufficient MariaDB version '".$compareSQLVersion."'. Version '10.0.22' or greater is needed."); + // MariaDB 5.5.47+ or 10.0.22+ are required + // https://jira.mariadb.org/browse/MDEV-8756 + if ($compareSQLVersion[0] === '5') { + // MariaDB 5.5.47+ + if (!(version_compare($compareSQLVersion, '5.5.47') >= 0)) { + throw new SystemException("Insufficient MariaDB version '".$compareSQLVersion."'. Version '5.5.47' or greater, or version '10.0.22' or greater is needed."); + } + } + else if (!(version_compare($compareSQLVersion, '10.0.22') >= 0)) { + // MariaDB 10.0.22+ + throw new SystemException("Insufficient MariaDB version '".$compareSQLVersion."'. Version '5.5.47' or greater, or version '10.0.22' or greater is needed."); } } else { diff --git a/wcfsetup/setup/lang/setup_de.xml b/wcfsetup/setup/lang/setup_de.xml index 3fe00c4411..a4c1fa8052 100644 --- a/wcfsetup/setup/lang/setup_de.xml +++ b/wcfsetup/setup/lang/setup_de.xml @@ -23,9 +23,9 @@ - + - + diff --git a/wcfsetup/setup/lang/setup_en.xml b/wcfsetup/setup/lang/setup_en.xml index 56236e8207..7756c83e30 100644 --- a/wcfsetup/setup/lang/setup_en.xml +++ b/wcfsetup/setup/lang/setup_en.xml @@ -23,9 +23,9 @@ - + - + diff --git a/wcfsetup/setup/template/stepShowSystemRequirements.tpl b/wcfsetup/setup/template/stepShowSystemRequirements.tpl index 44109156e2..a500ec29d6 100644 --- a/wcfsetup/setup/template/stepShowSystemRequirements.tpl +++ b/wcfsetup/setup/template/stepShowSystemRequirements.tpl @@ -56,7 +56,7 @@
{if !$system.sql.result}{lang}wcf.global.systemRequirements.sql.notFound{/lang}{else} - MySQL 5.5.35+ / MariaDB 10.0.22+ + pdo_mysql {/if} {if !$system.sql.result}{lang}wcf.global.systemRequirements.sql.description{/lang}{/if}