Strange class name in ValueWrapper.php #46477
-
Is there a special reason why there is in the file: src/Symfony/Component/Cache/Traits/ValueWrapper.php the ISO-8859-1 encoded line:
and not a bit a more readable or at least an UTF-8 encoded name? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
It's a "cookie" class, one with a unique distinct super-short name, internal also, needed for technical reasons (namely minimizing the size of the serialized payload). |
Beta Was this translation helpful? Give feedback.
-
its not something to be fixed on the symfony side, but just to give you an idea: the autoloader in the REDAXO project uses a json cache file for the autoloader, which does not work with non-UTF8 stuff. I try to fix it at the REDAXO end though. see german issue: redaxo/redaxo#5780 |
Beta Was this translation helpful? Give feedback.
It's a "cookie" class, one with a unique distinct super-short name, internal also, needed for technical reasons (namely minimizing the size of the serialized payload).
I made it non-utf8 on purpose, to have a single-char class-name that has low collision chance.