Go to the source code of this file.
◆ SimpleSAML_error_handler()
SimpleSAML_error_handler |
( |
|
$errno, |
|
|
|
$errstr, |
|
|
|
$errfile = null , |
|
|
|
$errline = 0 , |
|
|
|
$errcontext = null |
|
) |
| |
Definition at line 34 of file _include.php.
35{
36 if (!class_exists('SimpleSAML\Logger')) {
37
38
39
40
41
42 return false;
43 }
44
45 if (
SimpleSAML\Logger::isErrorMasked($errno)) {
46
47 return false;
48 }
49
50 static $limit = 5;
51 $limit -= 1;
52 if ($limit < 0) {
53
54 return false;
55 }
56
57
59 $e->logError();
60
61
62 return false;
63}
64
65set_error_handler('SimpleSAML_error_handler');
66
67try {
69} catch (Exception $e) {
70 throw new \SimpleSAML\Error\CriticalConfigurationError(
71 $e->getMessage()
72 );
73}
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Attribute-related utility methods.
Referenced by SimpleSAML_exception_handler().
◆ SimpleSAML_exception_handler()
SimpleSAML_exception_handler |
( |
|
$exception | ) |
|
Definition at line 10 of file _include.php.
11{
13
15 $exception->show();
16 } elseif ($exception instanceof Exception) {
18 $e->show();
19 } else {
20 if (class_exists('Error') && $exception instanceof Error) {
21 $code = $exception->getCode();
23 $errstr = $exception->getMessage();
24 $errfile = $exception->getFile();
25 $errline = $exception->getLine();
27 }
28 }
29}
SimpleSAML_error_handler($errno, $errstr, $errfile=null, $errline=0, $errcontext=null)
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
References $code, SimpleSAML\Module\callHooks(), and SimpleSAML_error_handler().
◆ try