using instance scope in closure doesn't work in php 5.3