From 12602037552604e19807a6f47227697d6818d499 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 20 Sep 2022 13:53:07 +0200 Subject: [PATCH] setting minimum version for 22.1 to PHP 7.4, recommended and maximum version to PHP 8.1 --- api/src/loader.php | 4 ++-- composer.json | 6 +++--- setup/inc/class.setup.inc.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/src/loader.php b/api/src/loader.php index 241d4582ec..88218ee077 100644 --- a/api/src/loader.php +++ b/api/src/loader.php @@ -25,7 +25,7 @@ use EGroupware\Api\Egw; // --> switching it off for now, as it makes error-log unusable error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); -$egw_min_php_version = '7.3'; +$egw_min_php_version = '7.4'; if (!function_exists('version_compare') || version_compare(PHP_VERSION,$egw_min_php_version) < 0) { die("EGroupware requires PHP $egw_min_php_version or greater.
Please contact your System Administrator to upgrade PHP!"); @@ -136,4 +136,4 @@ if ($GLOBALS['egw_info']['flags']['currentapp'] != 'login') $_SESSION[Session::EGW_INFO_CACHE]['user']['apps'] = array_keys((array)$_SESSION[Session::EGW_INFO_CACHE]['user']['apps']); $_SESSION[Session::EGW_OBJECT_CACHE] = serialize($GLOBALS['egw']); -} +} \ No newline at end of file diff --git a/composer.json b/composer.json index e3f4de4afb..5c09caa5c8 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ ], "config": { "platform": { - "php": "7.3" + "php": "7.4" }, "preferred-install": { "egroupware/*": "source", @@ -62,7 +62,7 @@ } }, "require": { - "php": ">=7.3,<=8.1", + "php": ">=7.4,<=8.1", "ext-gd": "*", "ext-json": "*", "ext-mysqli": "*", @@ -157,4 +157,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 0666b14490..29a0e4d710 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -70,13 +70,13 @@ class setup * * @var float */ - var $required_php_version = 7.3; + var $required_php_version = 7.4; /** * PHP Version recommended for EGroupware * * @var string */ - var $recommended_php_version = '7.4'; + var $recommended_php_version = '8.1'; function __construct($html=False, $translation=False) {