fixed closure use for php 5.3

Signed-off-by: Raf <7909000@gmail.com>