mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-80819 install: halt any install if php min version is not met
Apart from environmental stuff, the moodle_minimum_php_version_is_met() function is executed by all installs (web, cli, database, ...) and halts any installation (early) not meeting the PHP constraints.
This commit is contained in:
parent
719c95009e
commit
5a2acac1ed
@ -48,8 +48,8 @@ function moodle_minimum_php_version_is_met($haltexecution = false) {
|
||||
// PLEASE NOTE THIS FUNCTION MUST BE COMPATIBLE WITH OLD UNSUPPORTED VERSIONS OF PHP.
|
||||
// Do not use modern php features or Moodle convenience functions (e.g. localised strings).
|
||||
|
||||
$minimumversion = '7.1.0';
|
||||
$moodlerequirementchanged = '3.7';
|
||||
$minimumversion = '7.4.0';
|
||||
$moodlerequirementchanged = '4.1';
|
||||
|
||||
if (version_compare(PHP_VERSION, $minimumversion) < 0) {
|
||||
if ($haltexecution) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user