Get all PHP errors/warnings/… that occurred during the current request

后端 未结 5 1646
野性不改
野性不改 2021-02-13 18:07

Setting the directive display_errors to true (while having error_reporting set to E_ALL) prints all errors that occured durin

5条回答
  •  广开言路
    2021-02-13 18:44

    There is a discussion about this here and here (amongst others), with the second answer on the latter list using a mix of set_error_handler() with register_shutdown_function() being a good solution.

提交回复
热议问题