Changes for php 5.3 limitations over closure