aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-06-25 19:09:17 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-12-28 22:37:33 +0100
commit6b4d0a254218e8d40151ca1bdff8c439f89502e9 (patch)
tree18a2fdf9db565110c73f796e030b1fbed2393472 /phpBB/includes/search
parenteda9fbbb6363cad0f2035b7a1f9fafe27f23832b (diff)
downloadforums-6b4d0a254218e8d40151ca1bdff8c439f89502e9.tar
forums-6b4d0a254218e8d40151ca1bdff8c439f89502e9.tar.gz
forums-6b4d0a254218e8d40151ca1bdff8c439f89502e9.tar.bz2
forums-6b4d0a254218e8d40151ca1bdff8c439f89502e9.tar.xz
forums-6b4d0a254218e8d40151ca1bdff8c439f89502e9.zip
[ticket/9574] Add pcre_utf8_support() function
Refactor the check for PCRE UTF-8 support into a new pcre_utf8_support() function. PHPBB3-9574
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 22aeca7fee..9660fd6986 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -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;
}