From e978b6a67a942f954efcfb49a1793eaf038a63ad Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Fri, 16 Mar 2018 12:45:40 +0100 Subject: [PATCH] Add failing test case to reproduce #26438 --- .../avoid_loop_with_exception_handler.phpt | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/Symfony/Component/Debug/Tests/phpt/avoid_loop_with_exception_handler.phpt diff --git a/src/Symfony/Component/Debug/Tests/phpt/avoid_loop_with_exception_handler.phpt b/src/Symfony/Component/Debug/Tests/phpt/avoid_loop_with_exception_handler.phpt new file mode 100644 index 0000000000000..29cf4f1c8fb39 --- /dev/null +++ b/src/Symfony/Component/Debug/Tests/phpt/avoid_loop_with_exception_handler.phpt @@ -0,0 +1,55 @@ +--TEST-- +Test that, when handling a fatal, we don't create a loop with a third party exception handler installed after ours +--FILE-- + +--EXPECTF-- +Third party error handler +Calling previous handler: Symfony\Component\Debug\ErrorHandler +Third party exception handler +Calling previous handler: Symfony\Component\Debug\ErrorHandler +Uncaught Exception: foo +Fatal error: Uncaught %s +Stack trace: +%a