4require_once(dirname(dirname(__FILE__)).
'/lib/_autoload.php');
16 } elseif ($exception instanceof Exception) {
20 if (class_exists(
'Error') && $exception instanceof Error) {
21 $code = $exception->getCode();
23 $errstr = $exception->getMessage();
24 $errfile = $exception->getFile();
25 $errline = $exception->getLine();
31set_exception_handler(
'SimpleSAML_exception_handler');
36 if (!class_exists(
'SimpleSAML\Logger')) {
45 if (
SimpleSAML\Logger::isErrorMasked($errno)) {
65set_error_handler(
'SimpleSAML_error_handler');
69}
catch (Exception $e) {
70 throw new \SimpleSAML\Error\CriticalConfigurationError(
SimpleSAML_exception_handler($exception)
SimpleSAML_error_handler($errno, $errstr, $errfile=null, $errline=0, $errcontext=null)
An exception for terminatinating execution or to throw for unit testing.
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static initTimezone()
Initialize the timezone.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static installHandler()
Install this assertion handler.
Attribute-related utility methods.