Skip to content
Snippets Groups Projects
Commit 42af2eb5 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Deprecate SimpleSAML_Utilities::maskErrors() and...

Deprecate SimpleSAML_Utilities::maskErrors() and SimpleSAML_Utilities::popErrorMask(). These two should be where they are used, in the OpenID modules.
parent d7c5a7aa
No related branches found
No related tags found
No related merge requests found
......@@ -685,11 +685,7 @@ class SimpleSAML_Utilities {
/**
* Disable reporting of the given log levels.
*
* Every call to this function must be followed by a call to popErrorMask();
*
* @param int $mask The log levels that should be masked.
* @deprecated This method will be removed in SSP 2.0.
*/
public static function maskErrors($mask) {
assert('is_int($mask)');
......@@ -704,12 +700,9 @@ class SimpleSAML_Utilities {
/**
* Pop an error mask.
*
* This function restores the previous error mask.
* @deprecated This method will be removed in SSP 2.0.
*/
public static function popErrorMask() {
$lastMask = array_pop(self::$logLevelStack);
error_reporting($lastMask[0]);
self::$logMask = $lastMask[1];
......
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