increase required PHP version to 7.4
This commit is contained in:
parent
bf8392eb68
commit
c49393f5a4
|
@ -8,8 +8,8 @@ $phpVersion = PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;
|
|||
print "Running PHP $phpVersion\n";
|
||||
|
||||
|
||||
if(version_compare($phpVersion, '7.2') < 0) {
|
||||
echo 'we no longer support PHP versions < 7.2 and thus do not support tests on them';
|
||||
if(version_compare($phpVersion, '7.4') < 0) {
|
||||
echo 'we no longer support PHP versions < 7.4 and thus do not support tests on them';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"type": "project",
|
||||
"license": "GPL v2",
|
||||
"require": {
|
||||
"php": ">=7.2",
|
||||
"php": ">=7.4",
|
||||
"ext-json": "*",
|
||||
"splitbrain/php-archive": "~1.0",
|
||||
"phpseclib/phpseclib": "~2.0",
|
||||
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.2"
|
||||
"php": "7.4"
|
||||
}
|
||||
},
|
||||
"suggest": {
|
||||
|
|
|
@ -155,13 +155,13 @@ function check(){
|
|||
if ($INFO['isadmin'] || $INFO['ismanager']){
|
||||
msg('DokuWiki version: '.getVersion(),1);
|
||||
|
||||
if(version_compare(phpversion(),'7.2.0','<')){
|
||||
msg('Your PHP version is too old ('.phpversion().' vs. 7.2+ needed)',-1);
|
||||
if(version_compare(phpversion(),'7.4.0','<')){
|
||||
msg('Your PHP version is too old ('.phpversion().' vs. 7.4+ needed)',-1);
|
||||
}else{
|
||||
msg('PHP version '.phpversion(),1);
|
||||
}
|
||||
} else {
|
||||
if(version_compare(phpversion(),'7.2.0','<')){
|
||||
if(version_compare(phpversion(),'7.4.0','<')){
|
||||
msg('Your PHP version is too old',-1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -574,8 +574,8 @@ function check_functions()
|
|||
global $lang;
|
||||
$ok = true;
|
||||
|
||||
if (version_compare(phpversion(), '5.6.0', '<')) {
|
||||
$error[] = sprintf($lang['i_phpver'], phpversion(), '5.6.0');
|
||||
if (version_compare(phpversion(), '7.4.0', '<')) {
|
||||
$error[] = sprintf($lang['i_phpver'], phpversion(), '7.4.0');
|
||||
$ok = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue