Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A class named File will be not obfuscated #114

Open
hoit opened this issue Jul 12, 2023 · 1 comment
Open

A class named File will be not obfuscated #114

hoit opened this issue Jul 12, 2023 · 1 comment

Comments

@hoit
Copy link

hoit commented Jul 12, 2023

Hello,

If you create a class which is named File, it will be not obfuscated, i guess it is related to this option in the config file :
$conf->t_ignore_pre_defined_classes

@KminekMatej
Copy link

Actually this goes to global ignore status, since every string, having same name as any internal php function is silently ignored during obfusction. There is a file() function in native php's functions, therefore string File wont be obfuscated anywhere.

Logically, this neednt to be ignored in class name obfuscator, but since ignore list is simply a global array of strings, there is currently no way to determine whether ins this context its safe to obfuscate or not.

Temporary solution is to rename your File class to sth else.

Correct solution needs huge refactoring of how ignore list is generated and handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants