1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Ignore php errors whenever '@' is used.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
This commit is contained in:
Dhananjay Nakrani
2014-07-09 12:05:50 +05:30
parent 7731971f9e
commit dcd7e45a41

View File

@@ -109,6 +109,7 @@ class PMA_Error_Handler
* Error handler - called when errors are triggered/occurred
*
* This calls the addError() function, escaping the error string
* Ignores the errors wherever Error Control Operator (@) is used.
*
* @param integer $errno error number
* @param string $errstr error string
@@ -119,6 +120,10 @@ class PMA_Error_Handler
*/
public function handleError($errno, $errstr, $errfile, $errline)
{
// check if Error Control Operator (@) was used.
if (error_reporting() == 0) {
return;
}
$this->addError($errstr, $errno, $errfile, $errline, true);
}