Re: [RFC] Type Aliases
| From: | Rowan Tommins [IMSoP] | Date: | Wed, 03 Dec 2025 22:23:28 +0000 |
| Subject: | Re: [RFC] Type Aliases | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129536@lists.php.net to get a copy of this message | ||
On 3 December 2025 22:01:10 GMT, Rob Landers <rob@bottled.codes> wrote:
>On Wed, Dec 3, 2025, at 22:56, Morgan wrote:
>> Well, provided you stick to ASCII-only identifiers...
>>
>> ```
>>
>> class Thïng {}
>>
>> class THÏNG {}
>>
>> class thïng {}
>> ```
>
>Classes are not case-sensitive: https://3v4l.org/PLb4J#v8.5.0
Morgan is right that the case folding is only applied to ASCII letters. In the example,
"Thïng" and "thïng" are the same, because they differ only by "T" vs
"t", but "THÏNG" is different, because "ï" and "Ï" are
not case folded. <https://3v4l.org/PLb4J#v8.5.0>
In fact, they're not treated as letters at all. If I remember correctly, they're not even
analysed as code points, each individual byte above 0x7F is treated as completely opaque.
Rowan Tommins
[IMSoP]