mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-18 23:51:49 +02:00
git-svn-id: file:///svn/phpbb/trunk@8257 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -54,6 +54,7 @@ class fulltext_mysql extends search_backend
|
|||||||
if (function_exists('mb_ereg'))
|
if (function_exists('mb_ereg'))
|
||||||
{
|
{
|
||||||
$this->mbstring_regex = true;
|
$this->mbstring_regex = true;
|
||||||
|
mb_regex_encoding('UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = false;
|
$error = false;
|
||||||
@@ -152,7 +153,6 @@ class fulltext_mysql extends search_backend
|
|||||||
}
|
}
|
||||||
else if ($this->mbstring_regex)
|
else if ($this->mbstring_regex)
|
||||||
{
|
{
|
||||||
mb_regex_encoding('UTF-8');
|
|
||||||
mb_ereg_search_init($split_keywords, '(?:[^\w*"()]|^)([+\-|]?(?:[\w*"()]+\'?)*[\w*"()])(?:[^\w*"()]|$)');
|
mb_ereg_search_init($split_keywords, '(?:[^\w*"()]|^)([+\-|]?(?:[\w*"()]+\'?)*[\w*"()])(?:[^\w*"()]|$)');
|
||||||
|
|
||||||
while (($word = mb_ereg_search_regs()))
|
while (($word = mb_ereg_search_regs()))
|
||||||
@@ -285,7 +285,6 @@ class fulltext_mysql extends search_backend
|
|||||||
}
|
}
|
||||||
else if ($this->mbstring_regex)
|
else if ($this->mbstring_regex)
|
||||||
{
|
{
|
||||||
mb_regex_encoding('UTF-8');
|
|
||||||
mb_ereg_search_init($text, '(?:[^\w*]|^)([+\-|]?(?:[\w*]+\'?)*[\w*])(?:[^\w*]|$)');
|
mb_ereg_search_init($text, '(?:[^\w*]|^)([+\-|]?(?:[\w*]+\'?)*[\w*])(?:[^\w*]|$)');
|
||||||
|
|
||||||
$text = array();
|
$text = array();
|
||||||
|
Reference in New Issue
Block a user