From 6b4d0a254218e8d40151ca1bdff8c439f89502e9 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Fri, 25 Jun 2010 19:09:17 +0200 Subject: [ticket/9574] Add pcre_utf8_support() function Refactor the check for PCRE UTF-8 support into a new pcre_utf8_support() function. PHPBB3-9574 --- phpBB/includes/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/cache.php') diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php index 7c739fa600..1986f021c6 100644 --- a/phpBB/includes/cache.php +++ b/phpBB/includes/cache.php @@ -82,7 +82,7 @@ class cache extends acm $result = $db->sql_query($sql); $censors = array(); - $unicode = (@preg_match('/\p{L}/u', 'a') !== false) ? true : false; + $unicode = pcre_utf8_support(); while ($row = $db->sql_fetchrow($result)) { -- cgit v1.2.1