facebook/hhvm — pull request #3052 by SiebelsTim (2014-06-27 07:29:53+00:00)
Title: SplFileObject->fgetc() properly increases linenumber

That zendtest describes the problem pretty well.