[*] Fix on version of PHP < than 5.2 because of anonymous functions