hhvm-fastcgi + nginx how to make it display fatal errors in the browser

后端 未结 2 2010
隐瞒了意图╮
隐瞒了意图╮ 2021-01-03 23:05

I\'ve been playing with HHVM config file and I have yet to be able to make it output any fatal error to the browser. It displays E_NOTICE and E_WARNING but when any E_ERROR

2条回答
  •  死守一世寂寞
    2021-01-04 00:06

    You need to enable the configuration hhvm.server.implicit_flush in your php.ini, then you can send a response body in case of fatal errors. To be able to catch fatal errors with an error handler, you should also enable hhvm.error_handling.call_user_handler_on_fatals.

    For details, refer to the github issue on hhvm.

提交回复
热议问题