From: kirill at digicol dot de
Operating system: Linux Suse SuSE 8.2
PHP version: 4.3.4RC2
PHP Bug Type: mbstring related
Bug description: mb_eregi_replace() is not caseinsensitive for multibyte characters.
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 bug report at http://bugs.php.net/?id=25953&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25953&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25953&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25953&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25953&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25953&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25953&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25953&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25953&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25953&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25953&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25953&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25953&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25953&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25953&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25953&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25953&r=float