Obfuscation exclusion syntax

General discussion on Zend Guard / Optimizer
Post Reply
bpcamac
Posts: 4
Joined: Wed Mar 25, 2009 6:24 pm

Obfuscation exclusion syntax

Post by bpcamac » Wed Mar 25, 2009 6:36 pm

What is the correct syntax to use with the obfuscator to exclude functions defined within classes?

Illustration:

class MyClass {
static function f1() { }
static function f2() { }
}

I want ZendGuard to obfuscate the function f1, but not f2. I've tried adding MyClass::f2 to the exclusions file but no luck.

nickma
Zend Global Support
Posts: 137
Joined: Mon Dec 29, 2008 5:27 pm

Re: Obfuscation exclusion syntax

Post by nickma » Wed Mar 25, 2009 8:00 pm


bpcamac
Posts: 4
Joined: Wed Mar 25, 2009 6:24 pm

Re: Obfuscation exclusion syntax

Post by bpcamac » Wed Mar 25, 2009 8:33 pm

Actually, the manual that you linked to says "*f2" is invalid syntax. It will only accept "f2*"

But either way, that doesn't help when the same function name is used in different classes. Such as the following case:

class ClassA {
static function f1() { }
}

class ClassB {
static function f1() { }
static function f2() { }
}

How does one configure ZendGuard to:
- obfuscate all of these classes and functions
- except ClassB::f1()

nickma
Zend Global Support
Posts: 137
Joined: Mon Dec 29, 2008 5:27 pm

Re: Obfuscation exclusion syntax

Post by nickma » Thu Mar 26, 2009 6:51 pm

Unfortunately this can not be done .

Blacklisting function names inside classes will not work.

Post Reply