From 436d91fc533e514e9b15d54634044a86fe7f3f94 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 16 Oct 2009 11:04:16 +0000 Subject: [PATCH] openid: Use the new function to mask warnings from the OpenID library. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1858 44740490-163a-0410-bde0-09ae8108e29a --- modules/openid/www/consumer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/openid/www/consumer.php b/modules/openid/www/consumer.php index 94ac5316e..9676704c1 100644 --- a/modules/openid/www/consumer.php +++ b/modules/openid/www/consumer.php @@ -4,8 +4,7 @@ * Disable strict error reporting, since the OpenID library * used is PHP4-compatible, and not PHP5 strict-standards compatible. */ -$oldErrLevel = error_reporting(); -error_reporting($oldErrLevel & ~E_STRICT); +SimpleSAML_Utilities::maskErrors(E_STRICT); require_once('Auth/OpenID/SReg.php'); require_once('Auth/OpenID/Server.php'); -- GitLab