From: zilvinas at speros dot lt Operating system: Debian 2.6.12-1-k7-smp PHP version: 5.2.0 PHP Bug Type: Strings related Bug description: mb_eregi_replace() and mb_ereg_replace() is not caseinsensitive for multibyte
Description: ------------ The function mb_eregi_replace() and/or function mb_ereg_replace() with 'i' option is not caseinsensitive for multibyte characters. 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); //$result = mb_ereg_replace($pattern, $replace, $subject, 'i'); echo utf8_decode($result) . "\n"; ?> Expected result: ---------------- XBER Xber Actual result: -------------- ÜBER Xber -- Edit bug report at http://bugs.php.net/?id=39999&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39999&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39999&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39999&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39999&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39999&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39999&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39999&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39999&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39999&r=support Expected behavior: http://bugs.php.net/fix.php?id=39999&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39999&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39999&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39999&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39999&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39999&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39999&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39999&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39999&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39999&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39999&r=mysqlcfg