[pkg-nagios-changes] [Git][nagios-team/icingaweb2][master] Add upstream patch to disable deprecation warnings. (closes: #1105768)
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Wed May 14 15:47:56 BST 2025
Bas Couwenberg pushed to branch master at Debian Nagios Maintainer Group / icingaweb2
Commits:
84d8e02b by Bas Couwenberg at 2025-05-14T16:47:44+02:00
Add upstream patch to disable deprecation warnings. (closes: #1105768)
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/pr5359-error_reporting.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+icingaweb2 (2.12.4-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Add upstream patch to disable deprecation warnings.
+ (closes: #1105768)
+
+ -- Bas Couwenberg <sebastic at debian.org> Wed, 14 May 2025 16:47:03 +0200
+
icingaweb2 (2.12.4-1) unstable; urgency=high
* Team upload.
=====================================
debian/patches/pr5359-error_reporting.patch
=====================================
@@ -0,0 +1,36 @@
+Description: Disable deprecation warnings.
+Author: "Alexander A. Klimov" <alexander.klimov at icinga.com>
+Origin: https://github.com/Icinga/icingaweb2/pull/5359
+Bug: https://github.com/Icinga/icingaweb2/issues/5269
+Bug-Debian: https://bugs.debian.org/1105768
+
+--- a/library/Icinga/Application/ApplicationBootstrap.php
++++ b/library/Icinga/Application/ApplicationBootstrap.php
+@@ -568,7 +568,7 @@ abstract class ApplicationBootstrap
+ */
+ protected function setupErrorHandling()
+ {
+- error_reporting(E_ALL | E_STRICT);
++ error_reporting(getenv('ICINGAWEB_ENVIRONMENT') === 'dev' ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
+ ini_set('display_startup_errors', 1);
+ ini_set('display_errors', 1);
+ set_error_handler(function ($errno, $errstr, $errfile, $errline) {
+@@ -579,7 +579,6 @@ abstract class ApplicationBootstrap
+ switch ($errno) {
+ case E_NOTICE:
+ case E_WARNING:
+- case E_STRICT:
+ case E_RECOVERABLE_ERROR:
+ throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
+ }
+--- a/library/Icinga/Application/webrouter.php
++++ b/library/Icinga/Application/webrouter.php
+@@ -8,7 +8,7 @@ use Icinga\Web\Controller\StaticControll
+ use Icinga\Web\JavaScript;
+ use Icinga\Web\StyleSheet;
+
+-error_reporting(E_ALL | E_STRICT);
++error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
+
+ if (isset($_SERVER['REQUEST_URI'])) {
+ $ruri = $_SERVER['REQUEST_URI'];
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+pr5359-error_reporting.patch
View it on GitLab: https://salsa.debian.org/nagios-team/icingaweb2/-/commit/84d8e02bea44dfee6351f4ed7c9e6808c3d8038d
--
View it on GitLab: https://salsa.debian.org/nagios-team/icingaweb2/-/commit/84d8e02bea44dfee6351f4ed7c9e6808c3d8038d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20250514/bbba81e8/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list