Elektrine lite

← Feed

@heiglandreas@phpc.social

2026-08-28 07:40 UTC

@dseguy@phpc.social @jrf_nl@phpc.social That is though not limited to PHP. I had that headscratch moment in a file-system where within a folder we had 2 identical filenames. 🤯 Turned out one was written by a MacOS system, the other one by a Linux system and they used different Unicode-normalisations... 🤦 I learned a lot about Unicode that day. Things I never was able to unsee 🙈

Replies (1)

  • @dseguy@phpc.social 2026-08-28 07:49

    @heiglandreas@phpc.social @jrf_nl@phpc.social Indeed, this is all due to Unicode, and the assumption that K is an K, while there are some awesome features in Unicode that can be ... misused. I guess that part is universal. I have seem duplicate named files with the same trick as above (you might give it a try). As for variable names, it seems that PHP is the only one (Not sure, in fact) to allow ANY unicode, others have more restrictive rules of naming. I have another article about such deceptions coming.

    Open ##4555483