Fixed T_FUNCTION error in some older versions of PHP

Signed-off-by: Carlos Escribano Rey <carlos@markhaus.com>