mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +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:
@@ -43,7 +43,7 @@ class fulltext_mysql extends search_backend
|
||||
$this->word_length = array('min' => $config['fulltext_mysql_min_word_len'], 'max' => $config['fulltext_mysql_max_word_len']);
|
||||
|
||||
// PHP may not be linked with the bundled PCRE lib and instead with an older version
|
||||
if (@preg_match('/\p{L}/u', 'a') !== false)
|
||||
if (pcre_utf8_support())
|
||||
{
|
||||
$this->pcre_properties = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user