Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
003.phpt
01 --TEST--
02 Test ErrorHandler in case of fatal error
03 --SKIPIF--
04 <?php if (!extension_loaded('symfony_debug')) print 'skip'; ?>
05 --FILE--
06 <?php
07
08 namespace Psr\Log;
09
10 class LogLevel
11 {
12 const EMERGENCY = 'emergency';
13 const ALERT = 'alert';
14 const CRITICAL = 'critical';
15 const ERROR = 'error';
16 const WARNING = 'warning';
17 const NOTICE = 'notice';
18 const INFO = 'info';
19 const DEBUG = 'debug';
20 }
21
22 namespace Symfony\Component\Debug;
23
24 $dir = __DIR__.'/../../../';
25 require $dir.'ErrorHandler.php';
26 require $dir.'Exception/FatalErrorException.php';
27 require $dir.'Exception/UndefinedFunctionException.php';
28 require $dir.'FatalErrorHandler/FatalErrorHandlerInterface.php';
29 require $dir.'FatalErrorHandler/ClassNotFoundFatalErrorHandler.php';
30 require $dir.'FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php';
31 require $dir.'FatalErrorHandler/UndefinedMethodFatalErrorHandler.php';
32
33 function bar()
34 {
35 foo();
36 }
37
38 function foo()
39 {
40 notexist();
41 }
42
43 $handler = ErrorHandler::register();
44 $handler->setExceptionHandler('print_r');
45
46 if (function_exists('xdebug_disable')) {
47 xdebug_disable();
48 }
49
50 bar();
51 ?>
52 --EXPECTF--
53 Fatal error: Call to undefined function Symfony\Component\Debug\notexist() in %s on line %d
54 Symfony\Component\Debug\Exception\UndefinedFunctionException Object
55 (
56 [message:protected] => Attempted to call function "notexist" from namespace "Symfony\Component\Debug".
57 [string:Exception:private] =>
58 [code:protected] => 0
59 [file:protected] => %s
60 [line:protected] => %d
61 [trace:Exception:private] => Array
62 (
63 [0] => Array
64 (
65 %A [function] => Symfony\Component\Debug\foo
66 %A [args] => Array
67 (
68 )
69
70 )
71
72 [1] => Array
73 (
74 %A [function] => Symfony\Component\Debug\bar
75 %A [args] => Array
76 (
77 )
78
79 )
80 %A
81 )
82
83 [previous:Exception:private] =>
84 [severity:protected] => 1
85 )
86