mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Merged branch 'w31-MDL-28412_m22_iconv' of git://github.com/skodak/moodle.git with english string improvements
This commit is contained in:
commit
7d85a4e226
2 changed files with 24 additions and 0 deletions
12
install.php
12
install.php
|
@ -67,6 +67,18 @@ if (version_compare(phpversion(), "5.2.0") < 0) {
|
|||
die;
|
||||
}
|
||||
|
||||
// make sure iconv is available and actually works
|
||||
if (!function_exists('iconv')) {
|
||||
// this should not happen, this must be very borked install
|
||||
echo 'Moodle requires the iconv PHP extension. Please install or enable the iconv extension.';
|
||||
die();
|
||||
}
|
||||
if (iconv('UTF-8', 'UTF-8//IGNORE', 'abc') !== 'abc') {
|
||||
// known to be broken in mid-2011 MAMP installations
|
||||
echo 'Broken iconv PHP extension detected, installation can not continue.';
|
||||
die;
|
||||
}
|
||||
|
||||
if (PHP_INT_SIZE > 4) {
|
||||
// most probably 64bit PHP - we need a lot more memory
|
||||
$minrequiredmemory = '70M';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue