Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-09-26 23:30:39 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-09-26 23:30:39 +0300
commit6a5cb9f66efe7e406d2300a8ebcb989d485ee3be (patch)
tree079fcd3688b59b0c181fd036060dc15cf50fb8a9 /libraries
parent24d18b95dd7162e497ecff54ec891edc1bcf7e4b (diff)
parent893d4cddb67f671ec84a6b600a633974845877a1 (diff)
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/classes/ErrorHandler.php7
1 files changed, 5 insertions, 2 deletions
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: