Skip to content

Commit

Permalink
Make sure that we have the mbstring extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 29, 2009
1 parent 8ce4d03 commit 8cf0348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/installer.php
Expand Up @@ -210,7 +210,9 @@ static function check_environment() {
$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.";
}

Expand Down

0 comments on commit 8cf0348

Please sign in to comment.