Increase minimum PHP version to 8.1.2
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 9 May 2022 08:58:47 +0000 (10:58 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 10 May 2022 15:34:02 +0000 (17:34 +0200)
wcfsetup/install/files/lib/acp/form/PackageEnableUpgradeOverrideForm.class.php
wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/setup/template/stepShowSystemRequirements.tpl
wcfsetup/test.php

index b95224d0f2bcdabd867dbe6cefdf846d7e66fa3d..cd0fc8631ca27546bf287286741f077adbb21e2f 100644 (file)
@@ -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';
index 5abed858a0ca7f57fb38369592306ba8b8626db8..0357fcf63509844b7046a2cef41d1a8db5a33cb9 100644 (file)
@@ -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 = [
index fcf9edfa4220fd868a24b50bd5ee7c0720f42283..607e4315cfba8499a361f444a96f83de91e8609a 100644 (file)
@@ -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;
 
index 8cee1cbe34234c7352126126b26d8f23a0ff42e6..c1e0d1b03de06069d26d8d07ecf15b5b95176da3 100644 (file)
@@ -10,7 +10,7 @@
                        <div class="row rowColGap formGrid">
                                <dl class="col-xs-12 col-md-6">
                                        <dt>{lang}wcf.global.systemRequirements.element.required{/lang}</dt>
-                                       <dd>7.2.24</dd>
+                                       <dd>8.1.2</dd>
                                </dl>
                                
                                <dl class="col-xs-12 col-md-6">
index 0ca66a3b4b788d5b6302d533999b2ba74f8942e3..3226f0b3c3002b54b5153ca8b04f9517bc729071 100644 (file)
@@ -212,7 +212,7 @@ if (isset($_GET['language']) && in_array($_GET['language'], ['de', 'en'])) {
 <?php
 const WSC_SRT_VERSION = '5.4.0';
 $requiredExtensions = ['ctype', 'dom', 'exif', 'json', 'hash', 'libxml', 'mbstring', 'pcre', 'pdo', 'pdo_mysql', 'zlib'];
-$requiredPHPVersion = '7.2.24';
+$requiredPHPVersion = '8.1.2';
 $phrases = [
        'php_requirements' => [
                'de' => 'PHP',