ID: 25953
Updated by: [EMAIL PROTECTED]
-Summary: mb_eregi_replace() is not caseinsensitive for
multibyte characters.
Reported By: kirill at digicol dot de
-Status: Open
+Status: Wont fix
Bug Type: mbstring related
Operating System: Linux Suse SuSE 8.2
PHP Version: 4.3.4RC2
New Comment:
As of the current regex engine used by mbstring extension, all of the
cyrillic / greek / arabic characters and some alphabetical characters
that are not part of ascii character set such as a-umlaut (�) aren't
handled correctly under case-insensitive mode. Probably the issue will
be resolved in php5.
Previous Comments:
------------------------------------------------------------------------
[2003-10-22 10:16:53] kirill at digicol dot de
Description:
------------
The function mb_eregi_replace() is not caseinsensitive for multibyte
characters.
This bug is in PHP 4.3.3 as well.
Reproduce code:
---------------
<?php
mb_regex_encoding('UTF-8');
$pattern = utf8_encode('�');
$replace = 'X';
$subject = utf8_encode('�BER �ber');
$result = mb_eregi_replace($pattern, $replace, $subject);
echo utf8_decode($result) . "\n";
?>
Expected result:
----------------
XBER Xber
Actual result:
--------------
�BER Xber
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25953&edit=1