Skip to content

Commit

Permalink
Enforce mbstring extension during installation
Browse files Browse the repository at this point in the history
Fixes #23214
  • Loading branch information
atrol committed Mar 4, 2018
1 parent 18d5214 commit 74eaa35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions admin/install.php
Expand Up @@ -288,12 +288,10 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes
);

# UTF-8 support check
# We need either the 'mbstring' extension, or the utf8_encode() function
# (part of the 'XML parser' extension) as a fallback for Unicode support
# by the utf8 library.
# We need the 'mbstring' extension
print_test(
'Checking UTF-8 support',
extension_loaded( 'mbstring' ) || function_exists( 'utf8_encode' ),
extension_loaded( 'mbstring' ),
true,
'Please install or enable the PHP mbstring extension'
);
Expand Down

0 comments on commit 74eaa35

Please sign in to comment.