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:
Diffstat (limited to 'libraries/classes/ErrorHandler.php')
-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 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: