diff --git a/_test/fetchphpunit.php b/_test/fetchphpunit.php index 856e42382..de4cf5f79 100755 --- a/_test/fetchphpunit.php +++ b/_test/fetchphpunit.php @@ -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); } diff --git a/composer.json b/composer.json index e8178fff0..3f5a01b8d 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/inc/infoutils.php b/inc/infoutils.php index ef47060fa..0044f00b4 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -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); } } diff --git a/install.php b/install.php index 20f05a249..bede24cc8 100644 --- a/install.php +++ b/install.php @@ -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; }