Skip to content
Snippets Groups Projects
Unverified Commit be51f77d authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4815 from aydreeihn/issue/mpdf-phpversion

Issue: MPDF Export PHP < 7.0
parents 81ff7321 340472b2
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,12 @@ class Bootstrap {
if (extension_loaded('iconv'))
iconv_set_encoding('internal_encoding', 'UTF-8');
if (intval(phpversion()) < 7) {
function random_int($a, $b) {
return rand($a, $b);
}
}
function mb_str_wc($str) {
return count(preg_split('~[^\p{L}\p{N}\'].+~u', trim($str)));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment