From c0cf3c1d4a11ba0c99bf2f5933dab139d4d29a1e Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 30 May 2012 06:59:40 +0000 Subject: [PATCH] openid: "Fix" deprecation warnings from OpenID library. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3108 44740490-163a-0410-bde0-09ae8108e29a --- modules/openid/lib/Auth/Source/OpenIDConsumer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openid/lib/Auth/Source/OpenIDConsumer.php b/modules/openid/lib/Auth/Source/OpenIDConsumer.php index 67a73b26c..2144ad1b0 100644 --- a/modules/openid/lib/Auth/Source/OpenIDConsumer.php +++ b/modules/openid/lib/Auth/Source/OpenIDConsumer.php @@ -5,6 +5,10 @@ * used is PHP4-compatible, and not PHP5 strict-standards compatible. */ SimpleSAML_Utilities::maskErrors(E_STRICT); +if (defined('E_DEPRECATED')) { + /* PHP 5.3 also has E_DEPRECATED. */ + SimpleSAML_Utilities::maskErrors(constant('E_DEPRECATED')); +} /* Add the OpenID library search path. */ set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . '/lib'); -- GitLab