diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-11-08 22:48:07 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-11-08 22:48:07 +0100 |
commit | a731ed1d6736ca405b3559adfd9500affcc59412 (patch) | |
tree | d7d2f6df02bb9476d4593327f0fc8a35316e6d57 | |
parent | 63d9b82068e796869bf6ff648623acd33be27ebe (diff) | |
download | rpg-a731ed1d6736ca405b3559adfd9500affcc59412.tar.gz rpg-a731ed1d6736ca405b3559adfd9500affcc59412.tar.bz2 |
added PCRE UTF-8 checks to do=check FS#2636
-rw-r--r-- | inc/infoutils.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index dfd6554e7..0dc7092ad 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -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); |