compatibility fix: PHP 5.3, ->privateVariable in anonymous function problem