From 29a1c7ac094bdbce03ffcc187310763de935f92d Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Wed, 7 Mar 2018 19:06:42 +0100 Subject: [PATCH] [index.php] Add extension check for 'mbstring' The mbstring extension is required by all formats in order to convert multi- byte characters to UTF-8. This commit adds an extension check to throw an error message if the extension is not enabled. --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 799980b..851f0f9 100644 --- a/index.php +++ b/index.php @@ -70,6 +70,9 @@ if(!extension_loaded('openssl')) if(!extension_loaded('libxml')) die('"libxml" extension not loaded. Please check "php.ini"'); +if(!extension_loaded('mbstring')) + die('"mbstring" extension not loaded. Please check "php.ini"'); + // configuration checks if(ini_get('allow_url_fopen') !== "1") die('"allow_url_fopen" is not set to "1". Please check "php.ini');