]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14645 PHP 5.2.0 now required for new installation - installer lang packs will...
authorskodak <skodak>
Thu, 1 May 2008 21:40:34 +0000 (21:40 +0000)
committerskodak <skodak>
Thu, 1 May 2008 21:40:34 +0000 (21:40 +0000)
admin/cliupgrade.php
install.php
install/stringnames.txt
lang/en_utf8/install.php
lib/installlib.php

index 207fa0975f7dd020b26e485de98e175c5eb474c0..38514ae8df552cbc5943319d48e191072fa2177a 100644 (file)
@@ -277,7 +277,7 @@ if (!file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
         console_write(STDOUT, "\n", '', false);
     }
     /// Check that PHP is of a sufficient version
-    check_compatibility(inst_check_php_version(), get_string('phpversion', 'install'), get_string('phpversionerror', 'install'),false,$silent);
+    check_compatibility(inst_check_php_version(), get_string('phpversion', 'install'), get_string('php52versionerror', 'install'),false,$silent);
     /// Check session auto start
     check_compatibility(!ini_get_bool('session.auto_start'), get_string('sessionautostart', 'install'), get_string('sessionautostarterror', 'install'),false,$silent);
     /// Check magic quotes
index e10cf07feddfd8d7692e2c747aca5e94996d0f3e..29c3822fc3cc1eb1870a48390131cc5ef753af1d 100644 (file)
@@ -771,7 +771,7 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
             $compatsuccess = true;
 
             /// Check that PHP is of a sufficient version
-            print_compatibility_row(inst_check_php_version(), get_string('phpversion', 'install'), get_string('phpversionerror', 'install'), 'phpversionhelp');
+            print_compatibility_row(inst_check_php_version(), get_string('phpversion', 'install'), get_string('php52versionerror', 'install'), 'php52versionhelp');
             /// Check session auto start
             print_compatibility_row(!ini_get_bool('session.auto_start'), get_string('sessionautostart', 'install'), get_string('sessionautostarterror', 'install'), 'sessionautostarthelp');
             /// Check magic quotes
@@ -1061,12 +1061,7 @@ function check_memory_limit() {
 //==========================================================================//
 
 function inst_check_php_version() {
-    if (!check_php_version("4.3.0")) {
-        return false;
-    } else if (check_php_version("5.0.0")) {
-        return check_php_version("5.1.0"); // 5.0.x is too buggy
-    }
-    return true; // 4.3.x or 4.4.x is fine
+    return check_php_version("5.2.0");
 }
 //==========================================================================//
 
index f8c07c130e7c5d872c5032749cf94db51ddb9ce0..3a7be3eb639b7b4cff89068f836c3c2c237fd477 100644 (file)
@@ -177,6 +177,8 @@ password
 pearargerror
 pgsqlextensionisnotpresentinphp
 php50restricted
+php52versionerror
+php52versionhelp
 phpversion
 phpversionerror
 phpversionhelp
index 97a348dcab35ea1aaa8d74c2297cfb90fd53c24c..25deb88aea42a9262cf44f3ca3a754f02478668b 100644 (file)
@@ -293,8 +293,11 @@ $string['odbc_mssql'] = 'SQL*Server over ODBC (odbc_mssql)';
 $string['odbcextensionisnotpresentinphp'] = 'PHP has not been properly configured with the ODBC extension so that it can communicate with SQL*Server.  Please check your php.ini file or recompile PHP.';
 $string['pass'] = 'Pass';
 $string['pgsqlextensionisnotpresentinphp'] = 'PHP has not been properly configured with the PGSQL extension so that it can communicate with PostgreSQL.  Please check your php.ini file or recompile PHP.';
+$string['php52versionerror'] = 'PHP version must be at least 5.2.0.';
+$string['php52versionhelp'] = '<p>Moodle requires a PHP version of at least 5.2.0.</p>
+<p>You are currently running version $a</p>
+<p>You must upgrade PHP or move to a host with a newer version of PHP!';
 $string['phpversion'] = 'PHP version';
-$string['phpversionerror'] = 'PHP version must be at least 4.3.0 or 5.1.0 (5.0.x has a number of known problems).';
 $string['phpversionhelp'] = '<p>Moodle requires a PHP version of at least 4.3.0 or 5.1.0 (5.0.x has a number of known problems).</p>
 <p>You are currently running version $a</p>
 <p>You must upgrade PHP or move to a host with a newer version of PHP!<br/>
index 90ed04c53aea463da4c065aaf5dcfc52b75f9c67..d5a1b03c68fe17fe51cdc88722ff8bafb65136b4 100644 (file)
@@ -568,12 +568,7 @@ function check_memory_limit() {
  * @return boolean
  */
 function inst_check_php_version() {
-    if (!check_php_version("4.3.0")) {
-        return false;
-    } else if (check_php_version("5.0.0")) {
-        return check_php_version("5.1.0"); // 5.0.x is too buggy
-    }
-    return true; // 4.3.x or 4.4.x is fine
+    return check_php_version("5.2.0");
 }
 /**
  * Print environment status to standard out