Bug fix for PHP 5.3

PHP 5.3 can not access protected properties and method from a closure