/** * Pop an error mask. * * This function restores the previous error mask. * * @author Olav Morken, UNINETT AS <*****@*****.**> */ public static function popErrorMask() { $lastMask = array_pop(self::$logLevelStack); error_reporting($lastMask[0]); self::$logMask = $lastMask[1]; }
<?php /* * Disable strict error reporting, since the OpenID library * used is PHP4-compatible, and not PHP5 strict-standards compatible. */ sspmod_openidProvider_Utils::maskErrors(E_NOTICE | E_STRICT); if (defined('E_DEPRECATED')) { // PHP 5.3 also has E_DEPRECATED sspmod_openidProvider_Utils::maskErrors(constant('E_DEPRECATED')); } // Add the OpenID library search path. set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(dirname(dirname(__FILE__)))) . '/lib'); include_once 'Auth/OpenID/SReg.php'; include_once 'Auth/OpenID/AX.php'; /** * Helper class for the OpenID provider code. * * @package SimpleSAMLphp * @version $Id$ */ class sspmod_openidProvider_Server { /** * The authentication source for this provider. * * @var SimpleSAML_Auth_Simple */ private $authSource; /** * The attribute name where the username is stored.