diff options
author | 2018-03-07 19:06:42 +0100 | |
---|---|---|
committer | 2018-03-07 19:11:47 +0100 | |
commit | 29a1c7ac094bdbce03ffcc187310763de935f92d (patch) | |
tree | 1e66b7291ff51f533dc6a8023df778a6cd9e774d | |
parent | 6eea51eeeb1f988a366ac315c411d2420ac47967 (diff) | |
download | rss-bridge-29a1c7ac094bdbce03ffcc187310763de935f92d.tar.gz rss-bridge-29a1c7ac094bdbce03ffcc187310763de935f92d.tar.zst rss-bridge-29a1c7ac094bdbce03ffcc187310763de935f92d.zip |
[index.php] Add extension check for 'mbstring'2018-03-112018-03-10
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.
-rw-r--r-- | index.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'); |