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

Function names is not obfuscated #19

Closed
vovodroid opened this issue May 15, 2015 · 4 comments
Closed

Function names is not obfuscated #19

vovodroid opened this issue May 15, 2015 · 4 comments

Comments

@vovodroid
Copy link

Let's take very simple php:

<?php
foo();

function foo() {
 $var = 0;
}
?>

Result:

<?php
foo(); function foo() { $sp333434 = 0; }

Though variable name is scrambled, function name remains intact.

@gburtini
Copy link
Contributor

This is also true for class names and public methods on classes. I suspect the reason is straightforward: if you obfuscate only part of a project, there's no way to catch the references, so only things with a clearly defined scope are obfuscated.

@gburtini
Copy link
Contributor

See #28 and my fork's branch hammer-implement for a mechanism to "fix" this behavior.

@mageddo
Copy link

mageddo commented May 3, 2016

@gburtini I think that it is a good think, @naneau can you consider it please?

@naneau
Copy link
Owner

naneau commented Jan 13, 2017

Closing for #28

@naneau naneau closed this as completed Jan 13, 2017
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

4 participants