SplFileObject->fgetc() properly increases linenumber

Summary: That zendtest describes the problem pretty well.
Closes #3052

Reviewed By: @ptarjan

Differential Revision: D1408180

Pulled By: @JoelMarcey
The notice in the mysqli::error_list test doesn't occur with the test runner

Summary: Remove it

Reviewed By: @ptarjan

Differential Revision: D1406141