59287[TASK] Handle configured error level only in error handler
Commit message
Review
-
Code review CR +2 Done
- Anja Leichsenring +2
- Mona Muzaffar +1
- Jigal van Hemert +1
-
Verified V +2 Done
- Anja Leichsenring +2
- Mona Muzaffar +1
- Jigal van Hemert +1
- TYPO3com +1 CI
Issues 1
Files 2
Review log 2534
Show 69 earlier messages
-
Christoph Lehmann uploaded patch set 1 12/23/18, 14:19
-
Christoph Lehmann uploaded patch set 2 12/23/18, 14:22
-
TYPO3com voted on patch set 1 V +1 12/23/18, 14:32 Completed build in 12m 20s on Sun, 23 Dec, 03:32 PM Test Summary: 47813 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31125
-
TYPO3com voted on patch set 2 V +1 12/23/18, 14:35 Completed build in 11m 51s on Sun, 23 Dec, 03:35 PM Test Summary: 47813 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31126
-
Christoph Lehmann updated the commit message in patch set 3 12/23/18, 15:35
-
TYPO3com voted on patch set 3 V +1 12/23/18, 15:45 Completed build in 09m 43s on Sun, 23 Dec, 04:45 PM Test Summary: 47813 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31127
-
Kai Möller commented on patch set 3 CR -1 01/14/19, 13:03
-
Christoph Lehmann commented on patch set 4 01/14/19, 13:21
Published edit on patch set 3. -
Kai Möller voted on patch set 4 V +1 CR +1 01/14/19, 13:23
-
TYPO3com voted on patch set 4 V +1 01/14/19, 13:35 Completed build in 13m 34s on Mon, 14 Jan, 02:35 PM Test Summary: 47584 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31488
-
Benni Mack updated the commit message in patch set 5 01/15/19, 05:23
-
TYPO3com voted on patch set 5 V +1 01/15/19, 05:35 Completed build in 11m 25s on Tue, 15 Jan, 06:35 AM Test Summary: 47584 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31498
-
Alexander Schnitzler commented on patch set 5 01/15/19, 10:13
Hi Christoph, can you please explain how the error handler of the sentry package forwards the errors to the core error handler? If I read the php docs correctly you register an error handler via set_error_handler and once you register more, you stack them and you can remove handlers from the stack with restore_error_handler. I am unsure though how the forwarding then happens as the core error handler is already created with a specific $errorHandlerErrors value before the extension puts it's own error handler on top. I am asking because this use case should get a functional test and while trying to understand this issue I also tried to come up with a test. A generic one, without the sentry package but with mocks instead. -
Christoph Lehmann commented on patch set 5 01/15/19, 10:26
Hi Alex, the forwarding is done in https://github.com/getsentry/sentry-php/blob/1.10.0/lib/Raven/Breadcrumbs/ErrorHandler.php#L33 The registration of a new error handler is done in https://github.com/getsentry/sentry-php/blob/1.10.0/lib/Raven/Breadcrumbs/ErrorHandler.php#L40 "Problem" here is the E_ALL, but there is no way to get the previously registered error level, because set_error_handler() does not return it. So every error is forwarded. -
Alexander Schnitzler commented on patch set 5 01/15/19, 10:46
Sorry but I still don't get how the E_ALL affects the core error handler. The sentry error handler is registered with E_ALL but the core error handler still has its registered error level. So, how does the other affect the core error handler and what is the overall goal here? I might be totally blind but I really don't see what this patch tries to accomplish. -
Alexander Schnitzler commented on patch set 5 01/15/19, 10:55
Nevermind, I got it... I will push a functional test for this case soon. -
Christoph Lehmann commented on patch set 5 01/15/19, 10:56
Hi Alex, thank you very much for your investigation, and the functional test :-) -
Alexander Schnitzler uploaded patch set 6 01/15/19, 11:47
-
Alexander Schnitzler uploaded patch set 7 01/15/19, 11:53
-
TYPO3com voted on patch set 6 V -1 01/15/19, 12:03 Completed build in 15m 28s on Tue, 15 Jan, 01:03 PM Test Summary: 1 of 47980 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31503
-
TYPO3com voted on patch set 7 V +1 01/15/19, 12:07 Completed build in 13m 39s on Tue, 15 Jan, 01:07 PM Test Summary: 47586 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31505
-
TYPO3com commented on patch set 7 01/15/19, 12:18 Completed build in 13m 50s on Tue, 15 Jan, 01:18 PM Test Summary: 47586 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31507
-
Alexander Schnitzler voted on patch set 7 V +1 CR +1 01/15/19, 13:17
-
Kai Möller voted on patch set 7 V +1 CR +1 02/07/19, 09:43
-
Anja Leichsenring commented on patch set 7 CR -1 02/17/19, 10:03
I will check the need for a backport to 8.7. -
Christoph Lehmann commented on patch set 7 03/11/19, 19:40
And..Can we backport it? :-) -
Anja Leichsenring commented on patch set 7 03/29/19, 08:48
no. neither security relevant nor critical. So v9 and master only, please. -
Christoph Lehmann updated the commit message in patch set 8 03/29/19, 09:54
-
TYPO3com voted on patch set 8 V +1 03/29/19, 10:09 Completed build in 15m 27s on Fri, 29 Mar, 11:09 AM Test Summary: 47259 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-33006
-
Anja Leichsenring voted on patch set 8 V +1 CR +1 03/30/19, 11:32
-
Jigal van Hemert voted on patch set 8 V +1 CR +1 03/30/19, 13:14
-
Mona Muzaffar voted on patch set 8 V +1 CR +1 04/05/19, 12:30
-
Anja Leichsenring voted on patch set 8 V +2 CR +2 04/05/19, 15:09
-
Anja Leichsenring merged patch set 9 04/05/19, 15:09
ErrorHandler.php:107