|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-08-02 17:48 UTC] cmb@php.net
[2018-08-02 18:55 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2018-08-02 18:55 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ I have just read the changelog for PHP 7.3beta1 and noticed this example in the mb_strtoupper changes: >Support for full case-mapping and case-folding has been added. Unlike simple case-mapping, full case-mapping may change the length of the string. For example: > >mb_strtoupper("Straße") > >// Produces STRAßE on PHP 7.2 >// Produces STRASSE on PHP 7.3" The example provided is actually rather questionable and possibly wrong, since Capital ẞ has been added to standard German in 2017. So instead of either "STRAßE" or "STRASSE", the correct uppercase version should likely be "STRAẞE" mb_strtolower('ẞ') correctly lower-cases the string to 'ß', so this would be consistent behavior in my opinion and would make the behavior more future-proof. Quick Wikipedia reference: https://en.wikipedia.org/wiki/Capital_%E1%BA%9E