bad implementation in PHP5.3 ends my brief flirtation with closures