make yaf support for php7

See issue #126.