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
F15455268: D21578.id51371.diff
Sat, Mar 29, 11:13 PM
F15454594: D21578.diff
Sat, Mar 29, 7:13 PM
F15436682: D21578.id.diff
Tue, Mar 25, 3:51 PM
F15433610: D21578.diff
Tue, Mar 25, 12:01 AM
F15402470: D21578.id51371.diff
Mon, Mar 17, 10:40 PM
F15393188: D21578.id.diff
Sat, Mar 15, 8:17 PM
F15332876: D21578.diff
Mar 7 2025, 9:18 PM
Unknown Object (File)
Feb 19 2025, 9:17 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable