quick fix for some versions of php not supporting inline anonymous functions from r5102.

git-svn-id: http://svn.montala.net/svn/resourcespace@5109 c08608d7-6e46-0410-86ca-f2a6f1370df5