diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-11-12 21:22:26 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-11-12 21:22:26 +0100 |
commit | 3161005d07beb46bb8a866ec56a768938571ec9d (patch) | |
tree | eef6ac12c9aa09de859eba984ddc7990c82a198a /inc/infoutils.php | |
parent | a21383af58203bf0e6dc36a07ea78fae0b58c1ef (diff) | |
download | rpg-3161005d07beb46bb8a866ec56a768938571ec9d.tar.gz rpg-3161005d07beb46bb8a866ec56a768938571ec9d.tar.bz2 |
check for unicode preg capabilities in UTF-8 lib FS#2636
We now have two defines for checking for UTF-8 and Unicode property
support in PREG and use them to work around FS#2636 on older systems.
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 0dc7092ad..a9c33acfd 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -176,10 +176,10 @@ function check(){ msg('mb_string extension not available - PHP only replacements will be used',0); } - if (!preg_match("/^.$/u", "ñ")) { + if (!UTF8_PREGSUPPORT) { msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1); } - if (!preg_match("/^\pL$/u", "ñ")) { + if (!UTF8_PROPERTYSUPPORT) { msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1); } |