Skip to content
Snippets Groups Projects
Commit 04da32d7 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Also check $errno against PHP's error_reporting.

This is necessary to make sure that if a minimum PHP error level
has been set, this is also respected by SSP's error handler. Most
notably, this will make calls prefixed with '@', the PHP warning
silencer, actually silence the warnings. The SSP code tries to
makes use of the @ sign on various places around the code, but
this will only work if it's actually checked here.
parent 631e45ea
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = NULL, $errline = 0 ...@@ -54,7 +54,7 @@ function SimpleSAML_error_handler($errno, $errstr, $errfile = NULL, $errline = 0
} }
if ($errno & SimpleSAML_Utilities::$logMask) { if ($errno & SimpleSAML_Utilities::$logMask || ! ($errno & error_reporting() )) {
/* Masked error. */ /* Masked error. */
return FALSE; return FALSE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment