#35597 [Opn->Fbk]: mb_ereg() bug with utf-8 code
| From: | tony2001@php.net | Date: | Thu, 08 Dec 2005 11:20:49 +0000 |
| Subject: | #35597 [Opn->Fbk]: mb_ereg() bug with utf-8 code | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89948@lists.php.net to get a copy of this message | ||
ID: 35597
Updated by: tony2001@php.net
Reported By: kenneth_jiang70 at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Linux
PHP Version: 5.1.1
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-12-08 12:15:08] kenneth_jiang70 at hotmail dot com
Description:
------------
mb_ereg() bug in php 5.05
linux OP
charset=utf-8
string to be searched is Chinese-simplified character
string pattern: \s
Problem: wrong result
Reproduce code:
---------------
<?php
$userid="ºº×Ö";
if(mb_ereg("\s",$userid))
{
echo "found space";
}
else
{
echo "not found space";
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35597&edit=1