Skip to content

Commit

Permalink
Supress deprecation messages during runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
JKingweb committed Mar 2, 2021
1 parent 8aca42c commit e6b4edd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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)
==========================
Expand Down
2 changes: 2 additions & 0 deletions arsse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
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
Expand Down
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
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")) {
Expand Down

0 comments on commit e6b4edd

Please sign in to comment.