On my development machine, I have PHP set to display all errors (i.e., display_errors
is set to on
). Unfortunately, PHP sends fatal errors as text/html
, which makes reading call stacks a bit of a pain as whitespace is ignored in HTML.
Is there a way to have PHP send pages as text/plain
for fatal errors?