Added PHP 5.2.* support

Problem was caused by calling static fields for class names in
variables - fixed by using user_call_func() function