Closed
Description
In PHP some tokens are case-insensitive, namely:
- Functions names: https://www.php.net/manual/en/functions.user-defined.php
Note: Function names are case-insensitive for the ASCII characters A to Z, though it is usually good form to call functions as they appear in their declaration.
- class names
- methods (functions in classes)
The current mapping.json
design allows to map a string from the "canonical" representation.txt
to a single value from the original source.
With PHP's case insensitivity this is not enough, in fact given the following code:
<?php
function hElLoWoRlD() {}
HeLlOwOrLd();
our reprensentation.txt
file will look like:
function f0() {}
f0();
and our mapping.json
file will look like:
{"fn0":"helloworld"}
What can we do about those cases @ErikSchierboom ?
We could upgrade the mapping.json
structure to allow something like:
{"fn0":["hElLoWoRlD","HeLlOwOrLd"]}
Metadata
Metadata
Assignees
Labels
No labels