mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@8257 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f3fd02548a
commit
238395a91d
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue