mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14645 PHP 5.2.0 now required for CLI upgrade
This commit is contained in:
parent
0567b5af91
commit
afb40c03ae
1 changed files with 2 additions and 2 deletions
|
@ -700,9 +700,9 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
|
||||||
|
|
||||||
/// Check that PHP is of a sufficient version
|
/// Check that PHP is of a sufficient version
|
||||||
/// Moved here because older versions do not allow while(@ob_end_clean());
|
/// Moved here because older versions do not allow while(@ob_end_clean());
|
||||||
if (version_compare(phpversion(), "4.3.0") < 0) {
|
if (version_compare(phpversion(), "5.2.0") < 0) {
|
||||||
$phpversion = phpversion();
|
$phpversion = phpversion();
|
||||||
console_write(STDERR,"Sorry, Moodle requires PHP 4.3.0 or later (currently using version $phpversion)",'',false);
|
console_write(STDERR,"Sorry, Moodle requires PHP 5.2.0 or later (currently using version $phpversion)",'',false);
|
||||||
}
|
}
|
||||||
/// Turn off time limits and try to flush everything all the time, sometimes upgrades can be slow.
|
/// Turn off time limits and try to flush everything all the time, sometimes upgrades can be slow.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue