/// Check that PHP is of a sufficient version
/// Moved here because older versions do not allow while(@ob_end_clean());
- if (version_compare(phpversion(), "5.2.0") < 0) {
+ if (version_compare(phpversion(), "5.2.4") < 0) {
$phpversion = phpversion();
- console_write(STDERR,"Sorry, Moodle requires PHP 5.2.0 or later (currently using version $phpversion)",'',false);
+ console_write(STDERR,"Sorry, Moodle requires PHP 5.2.4 or later (currently using version $phpversion)",'',false);
}
/// Turn off time limits and try to flush everything all the time, sometimes upgrades can be slow.
<VENDOR name="oracle" version="9.0" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
- <PHP version="5.2.0" level="required">
+ <PHP version="5.2.4" level="required">
</PHP>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="optional">
/// Check that PHP is of a sufficient version
/// Moved here because older versions do not allow while(@ob_end_clean());
- if (version_compare(phpversion(), "5.2.0") < 0) {
+ if (version_compare(phpversion(), "5.2.4") < 0) {
$phpversion = phpversion();
- echo "Sorry, Moodle requires PHP 5.2.0 or later (currently using version $phpversion)";
+ echo "Sorry, Moodle requires PHP 5.2.4 or later (currently using version $phpversion)";
die;
}
$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>
+$string['php52versionerror'] = 'PHP version must be at least 5.2.4.';
+$string['php52versionhelp'] = '<p>Moodle requires a PHP version of at least 5.2.4.</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!</p>';
$string['phpversion'] = 'PHP version';
* @return boolean
*/
function inst_check_php_version() {
- return check_php_version("5.2.0");
+ return check_php_version("5.2.4");
}
* @param string $version The version of php being tested.
* @return bool
*/
-function check_php_version($version='5.2.0') {
+function check_php_version($version='5.2.4') {
return (version_compare(phpversion(), $version) >= 0);
}