Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for required mbstring extension #9278

Merged
merged 2 commits into from
Oct 18, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check for required mbstring extension
  • Loading branch information
colemanw committed Oct 17, 2016
commit 28288426d6db95be9cb065ade606fc7accfa6af3
19 changes: 19 additions & 0 deletions CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,4 +698,23 @@ public function checkDbEngine() {
return $messages;
}

/**
* Check for required mbstring extension
* @return array
*/
public function checkMbstring() {
$messages = array();

if (!function_exists('mb_substr')) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__,
ts('The required PHP Multibyte String extension is not enabled on your server. Ask your system administrator to install it.'),
ts('Missing mbstring Extension'),
\Psr\Log\LogLevel::ERROR,
'fa-server'
);
}
return $messages;
}

}