naneau / php-obfuscator

A parsing PHP obfuscator
585 stars 180 forks source link

Does not obfuscate static $var in function ? #7

Open changwuf31 opened 9 years ago

changwuf31 commented 9 years ago
function foo() {
  static $abc;
  $abc = 'xyz';
}

becomes

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

the $abc is not obfuscated ??

naneau commented 9 years ago

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

baptx commented 6 years ago

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)?