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
Unknown Object (File)
Mon, Jun 30, 9:57 PM
Unknown Object (File)
Jun 2 2025, 3:38 AM
Unknown Object (File)
May 28 2025, 2:28 PM
Unknown Object (File)
May 27 2025, 9:09 PM
Unknown Object (File)
May 1 2025, 8:31 AM
Unknown Object (File)
Apr 25 2025, 2:15 PM
Unknown Object (File)
Apr 24 2025, 9:02 PM
Unknown Object (File)
Apr 24 2025, 7:53 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