mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/9574] Add pcre_utf8_support() function
Refactor the check for PCRE UTF-8 support into a new pcre_utf8_support() function. PHPBB3-9574
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user