Workaround for php+apc lambda issues

Some versions of php+apc have issues with lambda's at the top level of
a file, this works arround the issue by not using a lambda.

Change-Id: I81bd07bd545e1284425b033535343bc0e62caa7c
Merge "Workaround for php+apc lambda issues"