pometek / phpobfuscator

Automatically exported from code.google.com/p/phpobfuscator
0 stars 0 forks source link

Bug obfuscate class on multiple file #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a project on MVC style, with classes (model) on separated files and 
controllers on other files.
on class i have

class SQL_DB {
function_x() 
function_y()
...
}

(no instance used)
on controller i have
$var = SQL_DB::function_x();

2. use phpobfuscator to obfuscate all files on the project

3. What is the expected output? What do you see instead?

after obfuscate all file and run on browser this error occured:
Fatal error: Class 'SQL_DB' not found in ...

if you look at the files on classes the SQL_DB and all functions was obfusated 
but on controller the line
$var = SQL_DB::function_x();
is now
$R7DB1EC92B544ACBCAE9BB334453E3CFA = SQL_DB::function_x();
what is wrong, because is not obfuscated

What version of the product are you using? On what operating system?
i use phpobfuscator version 0.1.0.0 on windows xp 64 bit (ms version 5.2.3790)

Please provide any additional information below.

Original issue reported on code.google.com by seimour....@gmail.com on 13 Jul 2010 at 3:05