diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | libraries/classes/ErrorHandler.php | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -34,6 +34,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 diff --git a/libraries/classes/ErrorHandler.php b/libraries/classes/ErrorHandler.php index 07b0eed485..8151281bc9 100644 --- a/libraries/classes/ErrorHandler.php +++ b/libraries/classes/ErrorHandler.php @@ -277,8 +277,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: |