Page MenuHomePhabricator

Add a simple primitive for managing PHP runtime error logs
ClosedPublic

Authored by epriestley on Feb 26 2021, 10:42 PM.
Tags
None
Referenced Files
F19093145: D21578.id51366.diff
Dec 3 2025, 7:56 PM
F19052410: D21578.id51366.diff
Nov 28 2025, 5:07 AM
F18938818: D21578.diff
Nov 11 2025, 5:25 AM
F18909238: D21578.id51366.diff
Nov 9 2025, 1:54 AM
F18895215: D21578.diff
Nov 7 2025, 2:36 PM
F18894779: D21578.diff
Nov 7 2025, 2:11 PM
F18874467: D21578.id.diff
Nov 5 2025, 2:37 PM
F18873637: D21578.diff
Nov 5 2025, 10:44 AM
Subscribers
None

Details

Summary

Ref T13624. If we want to send PHP errors to a log, using the "error_log" configuration option catches the broadest set of errors across versions of PHP.

Configuring this disables errors on stderr, since they're sent to the log instead. We'd like them to go to both places; provide a simple wrapper for this. Also do a bit of writability testing.

Test Plan

Wrote errors to a new log, see followup changes.

Diff Detail

Repository
rARC Arcanist
Branch
log0
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25174
Build 34744: Run Core Tests
Build 34743: arc lint + arc unit