Skip to content
Snippets Groups Projects
Commit a731ed1d authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added PCRE UTF-8 checks to do=check FS#2636

parent 63d9b820
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,13 @@ function check(){
msg('mb_string extension not available - PHP only replacements will be used',0);
}
if (!preg_match("/^.$/u", "ñ")) {
msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
}
if (!preg_match("/^\pL$/u", "ñ")) {
msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
}
$loc = setlocale(LC_ALL, 0);
if(!$loc){
msg('No valid locale is set for your PHP setup. You should fix this',-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment