Fixed unsupported use of self in closure in PHP 5.3.