Bug #42290 [Asn->Csd]: mb_eregi_replace() is not case-insensitive with multibyte pattern
| From: | hirokawa@php.net | Date: | Sat, 15 Oct 2011 09:07:35 +0000 |
| Subject: | Bug #42290 [Asn->Csd]: mb_eregi_replace() is not case-insensitive with multibyte pattern | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164331@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=42290&edit=1
ID: 42290
Updated by: hirokawa@php.net
Reported by: arysin at gmail dot com
Summary: mb_eregi_replace() is not case-insensitive with
multibyte pattern
-Status: Assigned
+Status: Closed
Type: Bug
Package: mbstring related
Operating System: *
PHP Version: 5.2CVS-2007-08-14
Assigned To: hirokawa
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Prior to PHP 5.4.0, the case-insensitive match of Unicode except for LATIN-1 area was not supported
by the bundled multibyte regex library (Oniguruma 4.7.2).
The Oniguruma library was updated to the newest version (5.9.2) which fully supports the Unicode
property.
Previous Comments:
------------------------------------------------------------------------
[2011-10-15 08:55:55] hirokawa@php.net
Automatic comment from SVN on behalf of hirokawa
Revision: http://svn.php.net/viewvc/?view=revision&revision=318132
Log: updated bundled oniguruma regex library to 5.9.2. fixed bug #42290.
------------------------------------------------------------------------
[2010-10-13 01:29:36] gevorg dot ha at gmail dot com
Hi,
please find code snippet which shoes that it doesn't work:
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
// Text contains three words with same letters, only with some uppercases.
$hText = 'ÕÔ±Õ
Ô±ÕÕÔ±ÕÔ¸ ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶
Õ°Õ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶';
// None of these two is working and only the last word is being replaced.
echo mb_eregi_replace ('Õ°Õ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶',
'<strong>\\0</strong>', $hText).'<br/>';
echo mb_ereg_replace ('Õ°Õ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶',
'<strong>\\0</strong>', $hText,
'msri').'<br/>';
Best,
Gevorg
------------------------------------------------------------------------
[2010-08-28 03:20:07] hirokawa@php.net
Could you show me the detailed information such as,
- code snippet which can reproduce the problem.
- setting information of mbstring.* in php.ini
- character encoding which you are using.
- version/locale of your OS.
------------------------------------------------------------------------
[2010-08-27 16:36:18] bubalula at gmail dot com
I tried also on another server with php version 5.2.11 and it does not work either.
------------------------------------------------------------------------
[2010-08-27 16:22:05] bubalula at gmail dot com
I have the same problem in version 5.2.12.
I don't know why this bug isn't taken seriously as it creates big problems for us working
with non latin languages.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=42290
--
Edit this bug report at https://bugs.php.net/bug.php?id=42290&edit=1