aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-18 20:04:34 +0000
committerMario <mario@mariovavti.com>2021-02-18 20:04:34 +0000
commitc9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2 (patch)
treee77dce7182b909ab099c0457584632ed934c77d8
parent18b9d1efd80c566c5e5cc21fb9b6c71d3502234f (diff)
downloadvolse-hubzilla-c9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2.tar.gz
volse-hubzilla-c9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2.tar.bz2
volse-hubzilla-c9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2.zip
adjust error reporting for php8 to not report warnings - they are too many
-rw-r--r--boot.php6
1 files changed, 5 insertions, 1 deletions
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);