make yaf support for php7