#34479 [Opn->Asn]: mb_strpos returns bad results with UTF-8 strings
| From: | sniper@php.net | Date: | Mon, 12 Sep 2005 12:12:41 +0000 |
| Subject: | #34479 [Opn->Asn]: mb_strpos returns bad results with UTF-8 strings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84926@lists.php.net to get a copy of this message | ||
ID: 34479
Updated by: sniper@php.net
Reported By: devilio at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: mbstring related
Operating System: Debian Sarge
PHP Version: 4.4.0
-Assigned To:
+Assigned To: moriyoshi
New Comment:
Assigned to maintainer.
Previous Comments:
------------------------------------------------------------------------
[2005-09-12 14:04:46] devilio at gmail dot com
Description:
------------
mb_strpos returns wrong value with some UTF-8 strings
Reproduce code:
---------------
echo(mb_strpos('¿¬hello', 'hello', 0, 'UTF-8'));
Expected result:
----------------
2
Actual result:
--------------
0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34479&edit=1