pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.24k stars 350 forks source link

Adding an option to ignore Global Variables. #87

Closed pemoon closed 3 years ago

pemoon commented 3 years ago

Global Variables should be considered as an ignore too. Please consider adding an option.

pk-fr commented 3 years ago

global keyword make a variable global at runtime within a function it can be placed everywhere, also just before return instruction and with no effect with the local variable with the same name before. cannot be determined at obfuscation time.

pemoon commented 3 years ago

So what should I do with global vars? Any suggestions?

pk-fr commented 3 years ago

$conf->t_ignore_variables = ['var1','var2', ...]; for all variables you want to ignore