|
|
|
|
|
by shuzchen
5095 days ago
|
|
If it wasn't clear by the comments on the bug report or by the quoted sections of this comment's parent, let me rephrase it. This issue is entirely caused by the fact that PHP is case insensitive for classes and function names (but not variables, go figure). That is, if you define a class MyClass, you can instantiate it using MyClass or myclass or MYCLASS. You can call the functions from the standard library in whatever case either (so, array_map or ARRAY_MAP is fine). Based on the behavior of this bug, it appears that the way PHP handles this case insensitivity is that it just lowercases all class and function names before resolving them. And this bug in particular shows up for Turkish because 'i' is not the lowercase equivalent of 'I'. Pretty much all other modern languages are case sensitive, so I'd be surprised to find this issue elsewhere. |
|
EDIT: “trivial to fix” as in, doesn’t cause regression, not necessarily that it’s a small change to the code base.