From 00bc7e9e831e9ee8af4a8fbcd92fe6c6b59c51ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 9 May 2022 10:58:47 +0200 Subject: [PATCH] Increase minimum PHP version to 8.1.2 --- .../acp/form/PackageEnableUpgradeOverrideForm.class.php | 2 +- .../install/files/lib/acp/page/SystemCheckPage.class.php | 8 ++++---- wcfsetup/install/files/lib/system/WCFSetup.class.php | 2 +- wcfsetup/setup/template/stepShowSystemRequirements.tpl | 2 +- wcfsetup/test.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php index b95224d0f2..cd0fc8631c 100644 --- a/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php @@ -70,7 +70,7 @@ final class PackageEnableUpgradeOverrideForm extends AbstractFormBuilderForm $issues = []; $phpVersion = \PHP_VERSION; - $neededPhpVersion = '7.2.24'; + $neededPhpVersion = '8.1.2'; if (!\version_compare($phpVersion, $neededPhpVersion, '>=')) { if (WCF::getLanguage()->getFixedLanguageCode() === 'de') { $title = 'Veraltete PHP-Version'; diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 5abed858a0..0357fcf635 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -81,10 +81,10 @@ class SystemCheckPage extends AbstractPage public $phpMemoryLimit = 128; public $phpVersions = [ - 'minimum' => '7.2.24', - 'deprecated' => ['7.2', '7.3'], - 'sufficient' => ['7.4'], - 'recommended' => ['8.0', '8.1'], + 'minimum' => '8.1.2', + 'deprecated' => [], + 'sufficient' => [], + 'recommended' => ['8.1'], ]; public $foreignKeys = [ diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index fcf9edfa42..607e4315cf 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -385,7 +385,7 @@ class WCFSetup extends WCF // php version $system['phpVersion']['value'] = \PHP_VERSION; $comparePhpVersion = \preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $system['phpVersion']['value']); - $system['phpVersion']['result'] = (\version_compare($comparePhpVersion, '7.2.24') >= 0); + $system['phpVersion']['result'] = (\version_compare($comparePhpVersion, '8.1.2') >= 0); $system['x64']['result'] = \PHP_INT_SIZE == 8; diff --git a/wcfsetup/setup/template/stepShowSystemRequirements.tpl b/wcfsetup/setup/template/stepShowSystemRequirements.tpl index 8cee1cbe34..c1e0d1b03d 100644 --- a/wcfsetup/setup/template/stepShowSystemRequirements.tpl +++ b/wcfsetup/setup/template/stepShowSystemRequirements.tpl @@ -10,7 +10,7 @@
{lang}wcf.global.systemRequirements.element.required{/lang}
-
7.2.24
+
8.1.2
diff --git a/wcfsetup/test.php b/wcfsetup/test.php index 0ca66a3b4b..3226f0b3c3 100644 --- a/wcfsetup/test.php +++ b/wcfsetup/test.php @@ -212,7 +212,7 @@ if (isset($_GET['language']) && in_array($_GET['language'], ['de', 'en'])) { [ 'de' => 'PHP', -- 2.20.1