Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-6537

Multibyte search bug with mbstring_regex

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.0
    • 3.0.RC7
    • Search
    • None
    • PHP Environment:
      Database:

      Search for some words with multibytes fail.

      Search :
      $split_keywords = mb_ereg_replace('([^\w\'*"()])', '\\1
      1', str_replace('\'\'', '\' \'', trim($split_keywords)));

      Add before:
      mb_regex_encoding('UTF-8');

      fixes this problem.

            DavidMJ DavidMJ
            dokster dokster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: