Skip to content

Commit

Permalink
[index.php] Add extension check for 'mbstring'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
logmanoriginal committed Mar 7, 2018
1 parent 6eea51e commit 29a1c7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
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');
Expand Down

0 comments on commit 29a1c7a

Please sign in to comment.