Homec4science

Check for PhutilMissingSymbolException when trying to load finfo

Authored by Nick Harper <nharper@fb.com> on Feb 17 2012, 22:24.

Description

Check for PhutilMissingSymbolException when trying to load finfo

Summary:
If class_exists('finfo') fails, a PhutilMissingSymbolException will also be
thrown, so we should wrap a try/catch around it.

Test Plan:
Loaded a page that was throwing a PhutilMissingSymbolException because of this,
and saw that it no longer throws this execption.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: jungejason, aran, epriestley

Differential Revision: https://secure.phabricator.com/D1634

Details

Committed
Nick Harper <nharper@fb.com>Feb 17 2012, 22:37
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU56de30352917: Make SimpleOptions parser more strict
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Harper <nharper@fb.com> committed rPHU3a5197db48f0: Check for PhutilMissingSymbolException when trying to load finfo (authored by Nick Harper <nharper@fb.com>).Feb 17 2012, 22:37