- 博客(2)
- 收藏
- 关注
原创 php全局异常处理
在php5.x中,如果想要最大程度的覆盖全局异常处理,需要通过下面三个方法实现set_error_handler();set_exception_handler();register_shutdown_function();set_error_handlerset_error_handler 用于自定义错误处理,但并不是全部的错误等级都能处理。像E_ERROR,E_PARSE...
2018-10-11 22:55:33
1829
原创 thinkphp队列+supervisor实践
thinkphp5之后,官方自带了一个队列扩展,thinkphp-queue:https://github.com/top-think/think-queue,以下为thinkphp-queue结合supervisor结合的一次任务队列实践,使用的队列驱动为redis。环境准备thinkphp主框架 thinkphp-queue扩展 supervisor redis以上环境为在li...
2018-09-21 20:59:55
5923
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人