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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Tue Mar 26 04:01:27 2019 UTC