SimpleErrorHandler:php(和hhvm)的简单错误处理程序

时间:2021-05-11 13:57:16
【文件属性】:
文件名称:SimpleErrorHandler:php(和hhvm)的简单错误处理程序
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-11 13:57:16
PHP SimpleErrorHandler SimpleErrorHandler提供了一个错误处理程序,该错误处理程序输出错误消息。 HHVM没有默认错误处理程序。 可以与hhvm一起使用以提供默认值。 用法 在自动前置文件中包含以下内容: require_once '/path/to/file/SimpleErrorHandler/SimpleErrorHandler.php'; set_error_handler( 'SimpleErrorHandler::error_handler' ); 在php.ini中,设置类似以下内容: auto_prepend_file = /path/to/file/prepend.php 要报告您的php应用程序中的所有错误,请添加以下内容: ini_set( "display_errors", 1 ); error_reporting( -1
【文件预览】:
SimpleErrorHandler-master
----SimpleErrorHandler.php(2KB)
----README.md(632B)

网友评论