Symfony 2.4: Why are 500 errors not caught by kernel.exception listener

后端 未结 2 1167
夕颜
夕颜 2021-01-04 07:01

I\'m trying to create a listener for listening 403, 404, and 500 exceptions. This works fine for 403 and 404 exceptions but not for 500 exceptions. For 500 exceptions (or ex

2条回答
  •  一向
    一向 (楼主)
    2021-01-04 07:12

    PHP 7 introduced fatal error exceptions. If you are in PHP 5.X the application stops.

提交回复
热议问题