diff options
author | Mario <mario@mariovavti.com> | 2021-02-18 20:04:34 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-18 20:04:34 +0000 |
commit | c9bbe1a735836b3a3ef5eccbeca85ebef75b3ac2 (patch) | |
tree | e77dce7182b909ab099c0457584632ed934c77d8 | |
parent | 18b9d1efd80c566c5e5cc21fb9b6c71d3502234f (diff) | |
download | volse-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.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |