Skip to content

Commit

Permalink
MDL-36196 hardcode the required PHP version in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Nov 7, 2012
1 parent 20aea2e commit 68cd60b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions install.php
Expand Up @@ -56,10 +56,8 @@
@error_reporting(E_ALL);
@ini_set('display_errors', '1');

// Check that PHP is of a sufficient version
// PHP 5.2.0 is intentionally checked here even though a higher version is required by the environment
// check. This is not a typo - see MDL-18112
if (version_compare(phpversion(), "5.2.0") < 0) {
// Check that PHP is of a sufficient version.
if (version_compare(phpversion(), '5.3.2') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN not move it after installib
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
Expand Down

0 comments on commit 68cd60b

Please sign in to comment.