From e6b4edd160cbe4b984bdf1c1da1a135087f6d63e Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 2 Mar 2021 11:54:28 -0500 Subject: [PATCH] Supress deprecation messages during runtime --- CHANGELOG | 2 ++ arsse.php | 2 ++ tests/bootstrap.php | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 683f89d0..93cea5eb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -18,6 +18,8 @@ Bug fixes: Changes: - Administrator account requirements for Nextcloud News functionality are now enforced +- E_DEPRECATED is now suppressed for compatibility with PHP 8 until affected + dependencies can be replaced Version 0.8.5 (2020-10-27) ========================== diff --git a/arsse.php b/arsse.php index b0f856cf..8b6d1fdb 100644 --- a/arsse.php +++ b/arsse.php @@ -13,6 +13,8 @@ require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php"; ignore_user_abort(true); ini_set("memory_limit", "-1"); ini_set("max_execution_time", "0"); +// FIXME: This is required by a dependency of Picofeed +error_reporting(\E_ALL & ~\E_DEPRECATED); if (\PHP_SAPI === "cli") { // initialize the CLI; this automatically handles --help and --version else diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 6ecb08aa..e066b243 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,7 +12,8 @@ const DOCROOT = BASE."tests".DIRECTORY_SEPARATOR."docroot".DIRECTORY_SEPARATOR; ini_set("memory_limit", "-1"); ini_set("zend.assertions", "1"); ini_set("assert.exception", "true"); -error_reporting(\E_ALL ^ \E_DEPRECATED); +// FIXME: This is required by a dependency of Picofeed +error_reporting(\E_ALL & ~\E_DEPRECATED); require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php"; if (function_exists("xdebug_set_filter")) {