Bug #51880 [Opn->Asn]: Missfunction of mb_eregi() and mb_ereg()

From: Date: Sat, 22 May 2010 14:15:07 +0000
Subject: Bug #51880 [Opn->Asn]: Missfunction of mb_eregi() and mb_ereg()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150731@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51880&edit=1

 ID:               51880
 Updated by:       felipe@php.net
 Reported by:      tnpaulik at gmail dot com
 Summary:          Missfunction of mb_eregi() and mb_ereg()
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          *Regular Expressions
 Operating System: Windows, Linux, doesn't matter
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      moriyoshi



Previous Comments:
------------------------------------------------------------------------
[2010-05-21 16:13:23] tnpaulik at gmail dot com

Description:
------------
mb_eregi doesnt macht caseinsensitivity for non ASCII signs in PHP 5.2
and 5.3

Example:
mb_eregi('Ü','ü') returns false.


mb_ereg is case insensotoive for non ASCII charakters if i put tem in
[]

Example:
mb_ereg("[Ü]","ü") returns true.

Test script:
---------------
if (!mb_eregi("Ü","ü"))
echo "THAT shoudldn't be so...\n";

if (mb_ereg("[Ü]","ü"))
echo "THAT shoudldn't be so...\n";

Expected result:
----------------
no output

Actual result:
--------------
THAT shoudldn't be so...
THAT shoudldn't be so...


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51880&edit=1


Thread (6 messages)

« previous php.bugs (#150731) next »