Ticket #53234: patch-ErrorHandler.php

File patch-ErrorHandler.php, 531 bytes (added by josephsacco, 7 years ago)

patch for libraries/ErrorHandler.php

Line 
1--- libraries/ErrorHandler.php- 2017-01-05 11:43:00.000000000 -0500
2+++ libraries/ErrorHandler.php  2017-01-05 11:44:35.000000000 -0500
3@@ -150,7 +150,7 @@
4     public function handleError($errno, $errstr, $errfile, $errline)
5     {
6         // check if Error Control Operator (@) was used.
7-        if (error_reporting() == 0) {
8+        if (error_reporting() == 0 || $errno == E_DEPRECATED) { // added – $errno == E_DEPRECATED
9             return;
10         }
11         $this->addError($errstr, $errno, $errfile, $errline, true);