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 // --> switching it off for now, as it makes error-log unusable
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); 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) 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!"); die("EGroupware requires PHP $egw_min_php_version or greater.<br />Please contact your System Administrator to upgrade PHP!");

View File

@ -45,7 +45,7 @@
], ],
"config": { "config": {
"platform": { "platform": {
"php": "7.3" "php": "7.4"
}, },
"preferred-install": { "preferred-install": {
"egroupware/*": "source", "egroupware/*": "source",
@ -62,7 +62,7 @@
} }
}, },
"require": { "require": {
"php": ">=7.3,<=8.1", "php": ">=7.4,<=8.1",
"ext-gd": "*", "ext-gd": "*",
"ext-json": "*", "ext-json": "*",
"ext-mysqli": "*", "ext-mysqli": "*",

View File

@ -70,13 +70,13 @@ class setup
* *
* @var float * @var float
*/ */
var $required_php_version = 7.3; var $required_php_version = 7.4;
/** /**
* PHP Version recommended for EGroupware * PHP Version recommended for EGroupware
* *
* @var string * @var string
*/ */
var $recommended_php_version = '7.4'; var $recommended_php_version = '8.1';
function __construct($html=False, $translation=False) function __construct($html=False, $translation=False)
{ {