#49399 [Opn->Fbk]: mb_ereg_replace() '\b' fails with mbstrings

From: Date: Sat, 29 Aug 2009 00:31:29 +0000
Subject: #49399 [Opn->Fbk]: mb_ereg_replace() '\b' fails with mbstrings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141680@lists.php.net to get a copy of this message
 ID:               49399
 Updated by:       jani@php.net
 Reported By:      manfred at mabuweb dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         mbstring related
 Operating System: linux
 PHP Version:      5.2.10
 New Comment:

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..


Previous Comments:
------------------------------------------------------------------------

[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)

« previous php.bugs (#141680) next »