#49399 [NoF->Asn]: mb_ereg_replace() '\b' fails with mbstrings
ID: 49399
Updated by: felipe@php.net
Reported By: manfred at mabuweb dot com
-Status: No Feedback
+Status: Assigned
Bug Type: mbstring related
Operating System: linux
PHP Version: 5.2.10
-Assigned To:
+Assigned To: moriyoshi
New Comment:
I can reproduce it only in 5.2.
Previous Comments:
------------------------------------------------------------------------
[2009-09-05 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-08-29 00:31:29] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Works fine for me..
------------------------------------------------------------------------
[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
Thread (8 messages)