php-obfuscator icon indicating copy to clipboard operation
php-obfuscator copied to clipboard

Does not obfuscate static $var in function ?

Open changwuf31 opened this issue 10 years ago • 2 comments
trafficstars

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

becomes

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

the $abc is not obfuscated ??

changwuf31 avatar Jan 15 '15 16:01 changwuf31

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

naneau avatar Jan 16 '15 17:01 naneau

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

baptx avatar Jan 22 '18 14:01 baptx