ezp-21977 fixed closure compatibility with php 5.3 again