summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-29 11:36:52 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-29 13:16:45 -0800
commitf6adcfe054a37afde734d672f9ad2f75c05c0df2 (patch)
tree7994c89faaab48b07b985a8c46efd376bcb39750
parent38f2784fbbb0661dc57627d2878cb640bbffe271 (diff)
Make sure that we have the mbstring extension.
-rw-r--r--installer/installer.php4
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.";
}