Bug #78767 [NEW]: mb_convert_case with lower option have error

From: Date: Thu, 31 Oct 2019 20:27:08 +0000
Subject: Bug #78767 [NEW]: mb_convert_case with lower option have error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223540@lists.php.net to get a copy of this message
From:             meminaydin at cmbilisim dot com
Operating system: Debian
PHP version:      7.3.11
Package:          mbstring related
Bug Type:         Bug
Bug description:mb_convert_case with lower option have error

Description:
------------
mb_convert_case with lower option have a bug. If the string being
converted contains turkish capital i (İ), the output is incorrect.  No
problem in versions 7.2 and earlier.

Test script:
---------------
<?php
$str = 'yİy';
echo $tmp = mb_convert_case($str, MB_CASE_LOWER, 'UTF-8'), "\n";

echo implode('', unpack('H*', $tmp)), "\n";

Expected result:
----------------
yiy
796979


Actual result:
--------------
yi̇y
7969cc8779


-- 
Edit bug report at https://bugs.php.net/bug.php?id=78767&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=78767&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=78767&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=78767&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=78767&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=78767&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=78767&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=78767&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=78767&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=78767&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=78767&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78767&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=78767&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=78767&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=78767&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=78767&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=78767&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=78767&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#223540) next »