updates to PHP closures