MDL-53019 php: bump all harcoded versions to new 5.6.5 requirement
Moodle 3.2 and up will require PHP >= 5.6.5. Hopefully some day we'll have this centralized with MDL-39007, just it's not done yet. Thanks to Stephen Bourget for raising this!
This commit is contained in:
+2
-2
@@ -62,10 +62,10 @@ date_default_timezone_set(@date_default_timezone_get());
|
||||
@ini_set('display_errors', '1');
|
||||
|
||||
// Check that PHP is of a sufficient version.
|
||||
if (version_compare(phpversion(), '5.4.4') < 0) {
|
||||
if (version_compare(phpversion(), '5.6.5') < 0) {
|
||||
$phpversion = phpversion();
|
||||
// do NOT localise - lang strings would not work here and we CAN not move it after installib
|
||||
echo "Moodle 2.7 or later requires at least PHP 5.4.4 (currently using version $phpversion).<br />";
|
||||
echo "Moodle 3.2 or later requires at least PHP 5.6.5 (currently using version $phpversion).<br />";
|
||||
echo "Please upgrade your server software or install older Moodle version.";
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user