Page MenuHomePhabricator

When including files, also print E_COMPILE_ERROR to avoid dying silently
ClosedPublic

Authored by epriestley on Aug 24 2018, 5:47 PM.
Tags
None
Referenced Files
F18703125: D19602.diff
Sun, Sep 28, 3:00 AM
F18687093: D19602.id.diff
Fri, Sep 26, 1:56 PM
F18673050: D19602.diff
Thu, Sep 25, 9:09 AM
F18671599: D19602.id46866.diff
Thu, Sep 25, 4:29 AM
F18509760: D19602.id.diff
Sep 5 2025, 3:35 AM
F18503198: D19602.diff
Sep 4 2025, 10:54 PM
F18401428: D19602.diff
Aug 29 2025, 7:19 PM
F18141291: D19602.id46866.diff
Aug 14 2025, 7:26 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 24 2018, 5:58 PM
This revision was automatically updated to reflect the committed changes.