naneau/php-obfuscator

Does not obfuscate static $var in function ?

changwuf31 opened this issue · 2 comments

function foo() {
  static $abc;
  $abc = 'xyz';
}

becomes

function foo() {
  static $abc;
  $blablabla = 'xyz';
}

the $abc is not obfuscated ??

This could very well be, I will look into it.

baptx commented

All class variables are not obfuscated, even if it is not static. For example in the obfuscated code I still have private $pluginPath and $this->pluginPath. Will you fix it or this project is not maintained anymore?
By the way, is it not better to not obfuscate all global variables by default? Because if we do WordPress or BuddyPress development, we have to manually exclude global variables wpdb and bp in the configuration file.
I also noticed my SQL code is not obfuscated, do you think it could be done in an update (even if reversible with hexadecimal codes like this PHP code obfuscator: https://github.com/pk-fr/yakpro-po)?