ID: 49399 User updated by: manfred at mabuweb dot com Reported By: manfred at mabuweb dot com Status: Assigned Bug Type: mbstring related Operating System: linux -PHP Version: 5.2.10 +PHP Version: 5.2.11 Assigned To: moriyoshi New Comment:
I've no 5.3 version to try, but I just tried in 5.2.11 and can reproduce the error. Previous Comments: ------------------------------------------------------------------------ [2009-12-13 19:32:46] [email protected] I can reproduce it only in 5.2. ------------------------------------------------------------------------ [2009-08-28 13:17:16] manfred at mabuweb dot com Description: ------------ mb_ereg_replace() and mb_eregi_replace() misinterpretate MBchars as word end. Reproduce code: --------------- $pattern = '\bas\b'; $string = 'Días'; echo $string.'<br/>'; echo mb_ereg_replace($pattern, '', $string); Expected result: ---------------- Días Días Actual result: -------------- Días Dí ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49399&edit=1
