setting minimum version for 22.1 to PHP 7.4, recommended and maximum version to PHP 8.1

This commit is contained in:
ralf 2022-09-20 13:53:07 +02:00
parent 7072f96244
commit 1260203755
3 changed files with 7 additions and 7 deletions

View File

@ -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.<br />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']);
}
}

View File

@ -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
}
}

View File

@ -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)
{