Page MenuHomePhabricator

Improve PHP7 handling of include-time parser-like fatals like "class must implement all abstract methods"
ClosedPublic

Authored by epriestley on Feb 6 2018, 1:00 PM.
Tags
None
Referenced Files
F15539862: D19001.id45576.diff
Fri, Apr 25, 5:18 AM
F15537071: D19001.id45566.diff
Thu, Apr 24, 12:00 PM
F15535442: D19001.id45578.diff
Thu, Apr 24, 5:17 AM
F15535021: D19001.id45576.diff
Thu, Apr 24, 3:07 AM
F15534520: D19001.id.diff
Thu, Apr 24, 12:36 AM
F15527791: D19001.diff
Tue, Apr 22, 6:34 AM
F15514649: D19001.id45566.diff
Fri, Apr 18, 4:12 AM
F15498056: D19001.id45578.diff
Sun, Apr 13, 11:54 AM
Subscribers
None

Details

Summary

Ref T12101. Although PHP7 raises parse errors as throwables, it still just instantly fatals for some types of parser-like error.

We currently silence these, so they can cause the process to appear to exit abruptly. Instead, unsilence them.

Test Plan
  • Don't implement all abstract methods.
  • Run arc unit.
  • Before: silent fatal.
  • After: useful error.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/moduleutils/PhutilBootloader.php
234

"immediately"

This revision is now accepted and ready to land.Feb 6 2018, 7:28 PM

I figured out how to make a computer do this for me, so hopefully I'll have fewer spelling errors in comments going forward:

Screen Shot 2018-02-06 at 11.47.45 AM.png (1×960 px, 64 KB)

  • Use more conventional spelling.
This revision was automatically updated to reflect the committed changes.