php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35597 mb_ereg() bug with utf-8 code
Submitted: 2005-12-08 12:15 UTC Modified: 2005-12-16 01:00 UTC
From: kenneth_jiang70 at hotmail dot com Assigned:
Status: No Feedback Package: mbstring related
PHP Version: 5.1.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kenneth_jiang70 at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-12-08 12:15 UTC] 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";
   }
   ?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-08 12:20 UTC] tony2001@php.net
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.



 [2005-12-16 01:00 UTC] 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".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC