php80: disable display_startup_errors except when debugging

while we're at it, PHP8 decided to enable display_startup_errors by default. Let's keep this
disabled except when in debug deployment mode.
This commit is contained in:
Stephan 2022-06-03 09:02:42 +02:00
parent 1a053334c2
commit 2e6f1e2e77

View File

@ -27,6 +27,8 @@ error_reporting = E_ALL
{% endif %}
display_errors={% if system.deployment|default("production") == "debug" %}on{%else%}off{%endif%}
display_startup_errors={% if system.deployment|default("production") == "debug" %}on{%else%}off{%endif%}
log_errors=on
error_log=/tmp/PHP_errors.log
date.timezone="{{system.timezone|default('Etc/UTC')}}"