HomePhabricator

When including files, also print E_COMPILE_ERROR to avoid dying silently

Description

When including files, also print E_COMPILE_ERROR to avoid dying silently

Summary:
Ref T12190. Ref T13187. I accidentally double-defined a method, which caused arc unit to exit silently under PHP 7.1.16.

Under this version of PHP, at least, this error raises an E_COMPILE_ERROR inside include_once() and never returns.

Test Plan:

  • Double define a testWhatever() method under PHP 7.1.16.
  • Run arc unit --everything.
  • Before patch: silent fatal.
  • After patch: useful error.

Reviewers: amckinley

Maniphest Tasks: T13187, T12190

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