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
F19513175: D19602.id46864.diff
Tue, Jan 13, 9:09 AM
F19091166: D19602.id.diff
Dec 3 2025, 1:53 PM
F18935642: D19602.diff
Nov 10 2025, 6:40 PM
F18866015: D19602.diff
Nov 3 2025, 3:03 PM
F18865261: D19602.diff
Nov 3 2025, 11:29 AM
F18861025: D19602.id.diff
Nov 2 2025, 2:05 PM
F18852690: D19602.id46864.diff
Oct 31 2025, 11:23 AM
F18791095: D19602.diff
Oct 16 2025, 1:47 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.