From c9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Feb 2021 20:04:34 +0000 Subject: adjust error reporting for php8 to not report warnings - they are too many --- boot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 932ad41db..71a946b9a 100644 --- a/boot.php +++ b/boot.php @@ -683,7 +683,11 @@ function sys_boot() { function startup() { - error_reporting(E_ERROR | E_WARNING | E_PARSE); + error_reporting(E_ALL & ~E_NOTICE); + + if (version_compare(PHP_VERSION, '8.0.0') >= 0) { + error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); + } // Some hosting providers block/disable this @set_time_limit(0); -- cgit v1.2.3