Remove unused parameters.

Summary: Makes dependencies clearer.

Reviewed By: @elgenie

Differential Revision: D1613869
Fix SplFileObject::__construct to match with PHP

Summary: Aims to fix #3401
Closes https://github.com/facebook/hhvm/pull/3983

Reviewed By: @paulbiss

Differential Revision: D1617360