diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-29 11:36:52 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-29 11:36:52 -0800 |
commit | 8cf0348e6c9b3dac0a14356676dec93a24b2dad6 (patch) | |
tree | fcddc40b776ca41ba3718756235406ac9f1d3d45 /installer | |
parent | 8ce4d03821da406df921cde73b3e6e7147975dab (diff) |
Make sure that we have the mbstring extension.
Diffstat (limited to 'installer')
-rw-r--r-- | installer/installer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installer/installer.php b/installer/installer.php index 3b1716e2..e2c60d46 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -210,7 +210,9 @@ class installer { $errors[] = "PHP is missing the <a href=\"http://php.net/simplexml\">SimpleXML extension</a>"; } - if (extension_loaded("mbstring") && (ini_get("mbstring.func_overload") & MB_OVERLOAD_STRING)) { + if (!extension_loaded("mbstring")) { + $errors[] = "PHP is missing the <a href=\"http://php.net/mbstring\">mbstring extension</a>"; + } else if (ini_get("mbstring.func_overload") & MB_OVERLOAD_STRING) { $errors[] = "The <a href=\"http://php.net/mbstring\">mbstring extension</a> is overloading PHP's native string functions. Please disable it."; } |