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