From 68cd60b7dfb720e0c2c05cb6c60d996170d30489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Wed, 24 Oct 2012 23:37:49 +0800 Subject: [PATCH] MDL-36196 hardcode the required PHP version in installer --- install.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.php b/install.php index c737e63679925..69118dfbdf0d8 100644 --- a/install.php +++ b/install.php @@ -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).
";