facebook/hhvm — pull request #3553 by SiebelsTim (2014-08-21 20:34:11+00:00)
Title: Fix maxlinelen

Fix fgets to read up to `length -1` instead of `length`
Also fix `SplFileObject::fgets` to include the `maxLineLen`

I moved all good tests found in `standard/file`
`fgetss_basic2.php` `fgetss_variant3.php` are fixed by this diff.