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

Does not obfuscate static $var in function ? #7

Open
changwuf31 opened this issue Jan 15, 2015 · 2 comments
Open

Does not obfuscate static $var in function ? #7

changwuf31 opened this issue Jan 15, 2015 · 2 comments

Comments

@changwuf31
Copy link

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

becomes

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

the $abc is not obfuscated ??

@naneau
Copy link
Owner

naneau commented Jan 16, 2015

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

@baptx
Copy link

baptx commented Jan 22, 2018

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

bfabiszewski pushed a commit to bfabiszewski/php-obfuscator that referenced this issue Mar 1, 2021
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

3 participants