In the ZendFramework framework, an error is reported before ErrorController detects an exception (too many connections ?), How to obtain and handle such exception information
Source: Internet
Author: User
In the ZendFramework, an error is reported before ErrorController catches the error (too many connections ?), How can I obtain and handle such errors? Before the error handling mechanism of the ZendFramework captures the error, the following error occurs: Fatal & nbsp; error: XXXX & nbsp; MySql & nbsp; because & nbsp; of ZendFramework framework, an error is reported before ErrorController catches the error (too many connections ?), How can I obtain and handle such errors?
Before the error handling mechanism of the ZendFramework captures the error, an error is returned:
Fatal error: XXXX MySql because of Fatal connect error XXXXX
Is there a way to get and modify the error information display?
For PHP beginners, please kindly advise. thank you.
------ Solution --------------------
It is difficult to capture if the extension directly throws fatal.
In this case, the key problem is that your mysql configuration is incorrect. time wait is too long and there is no persistent connection. as a result, an error is reported when there are too many connections in mysql.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.