1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Supress deprecation messages during runtime

This commit is contained in:
J. King 2021-03-02 11:54:28 -05:00
parent 8aca42c882
commit e6b4edd160
3 changed files with 6 additions and 1 deletions

View file

@ -18,6 +18,8 @@ Bug fixes:
Changes: Changes:
- Administrator account requirements for Nextcloud News functionality are - Administrator account requirements for Nextcloud News functionality are
now enforced 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) Version 0.8.5 (2020-10-27)
========================== ==========================

View file

@ -13,6 +13,8 @@ require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php";
ignore_user_abort(true); ignore_user_abort(true);
ini_set("memory_limit", "-1"); ini_set("memory_limit", "-1");
ini_set("max_execution_time", "0"); 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") { if (\PHP_SAPI === "cli") {
// initialize the CLI; this automatically handles --help and --version else // initialize the CLI; this automatically handles --help and --version else

View file

@ -12,7 +12,8 @@ const DOCROOT = BASE."tests".DIRECTORY_SEPARATOR."docroot".DIRECTORY_SEPARATOR;
ini_set("memory_limit", "-1"); ini_set("memory_limit", "-1");
ini_set("zend.assertions", "1"); ini_set("zend.assertions", "1");
ini_set("assert.exception", "true"); 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"; require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php";
if (function_exists("xdebug_set_filter")) { if (function_exists("xdebug_set_filter")) {