Use finfo_open() instead of new finfo()
Summary:
new finfo() always returns an object (and never null as opposed to comment).
But this object is unusable when there is an error.
I've also clarified PHP documentation:
http://svn.php.net/viewvc/phpdoc/en/trunk/reference/fileinfo/functions/finfo-open.xml?r1=323455&r2=323454
Test Plan:
Ran this part separately to be sure that it didn't fall back to other
attempts.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1677