ZendFramework框架下,在ErrorController抓住异常之前就报错(连接数过多?),该怎么获取并处理此类异常信息

WBOY
Release: 2016-06-13 12:29:47
Original
730 people have browsed it

ZendFramework框架下,在ErrorController抓住错误之前就报错(连接数过多?),该如何获取并处理此类错误信息?
ZendFramework框架处理错误机制抓住错误之前,就报错:

Fatal error:XXXX MySql because of many connect error XXXXX

这种错误有办法获取并修改错误信息显示呢?

PHP新手,请不吝赐教,谢谢.因为如果扩展是直接抛fatal,是很难捕获的
在这个案例中,关键问题是你的mysql配置有问题,time wait太长又没有用长连接导致mysql的连接数过多报错

查你的mysql配置吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!