CRM-21719 Require Multibyte PHP extension
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 28 Jan 2018 05:34:06 +0000 (16:34 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 28 Jan 2018 05:34:06 +0000 (16:34 +1100)
install/index.php

index 166bd2a8ef015349b4227796109fee34f885ef87..2367eab45b46a1657f2d995e857f3dac92c19be2 100644 (file)
@@ -727,6 +727,13 @@ class InstallRequirements {
       ts("JSON support not included in PHP."),
     ));
 
+    // check for Multibyte support such as mb_substr. Required for proper handling of Multilingual setups.
+    $this->requireFunction('mb_substr', array(
+      ts("PHP Configuration"),
+      ts("Multibyte support"),
+      ts("Multibyte support not enabled in PHP."),
+    ));
+
     // Check for xcache_isset and emit warning if exists
     $this->checkXCache(array(
       ts("PHP Configuration"),