Commit 681f14b
committed
feature #10353 [Debug] ExceptionHandlerInterface to allow third party exception handlers to handle fatal errors caught by ErrorHandler (FineWolf)
This PR was merged into the 2.5-dev branch.
Discussion
----------
[Debug] ExceptionHandlerInterface to allow third party exception handlers to handle fatal errors caught by ErrorHandler
| Q | A
| ------------- | ---
| Bug fix? | yes (other project)
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| Related tickets | schmittjoh/JMSDebuggingBundle#68
| License | MIT
| Doc PR |
The current `ErrorHandler` is extremely strict on how it selects whether to run an `ExceptionHandler` when an `E_FATAL` occurs.
This modification allows any class that implements `ExceptionHandlerInterface` to handle a `FatalErrorException` created by the `ErrorHandler`.
Commits
-------
15d063b Create ExceptionHandlerInterface to allow third party exception handlers' to handle fatal errorsFile tree
Expand file treeCollapse file tree
3 files changed
+33
-6
lines changedOpen diff view settings
Filter options
- src/Symfony/Component/Debug
Expand file treeCollapse file tree
3 files changed
+33
-6
lines changedOpen diff view settings
Collapse file
src/Symfony/Component/Debug/ErrorHandler.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/ErrorHandler.php+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
155 | 155 | |
156 | 156 | |
157 | 157 | |
158 | | - |
| 158 | + |
159 | 159 | |
160 | 160 | |
161 | 161 | |
| ||
263 | 263 | |
264 | 264 | |
265 | 265 | |
266 | | - |
| 266 | + |
267 | 267 | |
268 | 268 | |
269 | 269 | |
| ||
284 | 284 | |
285 | 285 | |
286 | 286 | |
287 | | - |
| 287 | + |
288 | 288 | |
289 | 289 | |
290 | 290 | |
|
Collapse file
src/Symfony/Component/Debug/ExceptionHandler.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/ExceptionHandler.php+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
| 60 | + |
| 61 | + |
60 | 62 | |
61 | 63 | |
62 | 64 | |
63 | 65 | |
64 | 66 | |
65 | 67 | |
66 | | - |
67 | | - |
68 | 68 | |
69 | 69 | |
70 | 70 | |
|
Collapse file
src/Symfony/Component/Debug/ExceptionHandlerInterface.php
Copy file name to clipboard+27Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
0 commit comments