naneau/php-obfuscator

Function names is not obfuscated

vovodroid opened this issue · 4 comments

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.

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.

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

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

Closing for #28