Bug #74678 [NEW]: mb_strtoupper() and mb_strtolower() are compleltly broken

From: Date: Wed, 31 May 2017 10:55:23 +0000
Subject: Bug #74678 [NEW]: mb_strtoupper() and mb_strtolower() are compleltly broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209313@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: PHP version: 7.1Git-2017-05-31 (Git) Package: mbstring related Bug Type: Bug Bug description:mb_strtoupper() and mb_strtolower() are compleltly broken Description: ------------ bad enough that mb_strtoupper() don't work at all but that mb_strtolower() destroys the string is a no-go [harry@rh:/downloads]$ cat test.php <?php $mb_test = utf8_encode(chr(252) . chr(246) . chr(228)); echo "$mb_test\n"; $mb_test = mb_strtoupper($mb_test); echo "$mb_test\n"; $mb_test = mb_strtolower($mb_test); echo "$mb_test\n"; [harry@rh:/downloads]$ php test.php üöä üöä ������ -- Edit bug report at https://bugs.php.net/bug.php?id=74678&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74678&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74678&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74678&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74678&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74678&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74678&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74678&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74678&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74678&r=support Expected behavior: https://bugs.php.net/fix.php?id=74678&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74678&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74678&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74678&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74678&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74678&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74678&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74678&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74678&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74678&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74678&r=mysqlcfg

« previous php.bugs (#209313) next »