Addition fix for #1348

Replaces closure with lambda for use with PHP 5.2.*