Same PHP 5.3 bug: self cannot be used in anonymous functions