Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/upgradephp/upgrade.php')
-rw-r--r--libs/upgradephp/upgrade.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index 29fa9752d9..3ac2b8ae8c 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -681,9 +681,22 @@ if (!function_exists('utf8_decode')) {
* @param string $charset
*/
if(!function_exists('mb_strtolower')) {
- function mb_strtolower($input, $charset) {
- return strtolower($input);
- }
+ function mb_strtolower($input, $charset = '') {
+ return strtolower($input);
+ }
+}
+
+/**
+ * Use strlen if mb_strlen doesn't exist (i.e., php not compiled with --enable-mbstring)
+ * This is not a functional replacement for mb_strlen.
+ *
+ * @param string $input
+ * @param string $charset
+ */
+if(!function_exists('mb_strlen')) {
+ function mb_strlen($input, $charset = '') {
+ return strlen($input);
+ }
}
/**