facebook/hhvm — pull request #3408 by simonwelsh (2014-08-09 07:39:10+00:00)
Title: Trim the next file name

This removes trailing null characters, meaning the `file_put_contents` in `extractAllTo` doesn't error from a path with a null character in it which happened when trying to extract a file with a name over 100 characters long.

Also matches the behaviour of a non-link file where the filename gets trimmed when read from the header.