From 9d7582a2c0c41473c19f6e312bb53f0d3d510921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 21 Sep 2022 22:02:03 -0300 Subject: [PATCH 1/2] Hide deprecation notices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not show deprecation notices when not in a development environment. Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/ErrorHandler.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/classes/ErrorHandler.php b/libraries/classes/ErrorHandler.php index ed9ea46aca..1e114ccc2f 100644 --- a/libraries/classes/ErrorHandler.php +++ b/libraries/classes/ErrorHandler.php @@ -275,8 +275,11 @@ class ErrorHandler $error = new Error($errno, $errstr, $errfile, $errline); $error->setHideLocation($this->hideLocation); - // do not repeat errors - $this->errors[$error->getHash()] = $error; + // Deprecation errors will be shown in development environment, as they will have a different number. + if ($error->getNumber() !== E_DEPRECATED) { + // do not repeat errors + $this->errors[$error->getHash()] = $error; + } switch ($error->getNumber()) { case E_STRICT: From 893d4cddb67f671ec84a6b600a633974845877a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Mon, 26 Sep 2022 17:29:06 -0300 Subject: [PATCH 2/2] Add ChangeLog entries for #17728 and #17734 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- ChangeLog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 87270ffc68..46def253e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,8 @@ phpMyAdmin - ChangeLog - issue #17543 Fix JS error on saving a new designer page - issue #17546 Fix JS error after using save as and open page operation on the designer - issue Fix PHP warning on GIS visualization when there is only one GIS column +- issue #17728 Some select HTML tags will now have the correct UI style +- issue #17734 PHP deprecations will only be shown when in a development environment 5.2.0 (2022-05-10) - issue #16521 Upgrade Bootstrap to version 5