facebook/hhvm — pull request #3367 by SiebelsTim (2014-08-05 20:01:10+00:00)
Title: Implement SplFileObject::fread

I can't test against length < 0 currently, because fread's implementation doesn't match php5