Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set custom error levels in zend framework

How can I set custom error levels with Zend Framework - say, I want to disable E_NOTICE.

Thanks.

like image 717
pMan Avatar asked Dec 21 '22 23:12

pMan


1 Answers

If you are using Zend_Application put the following line into your application.ini

phpsettings.error_reporting = E_ALL & ~E_NOTICE

You can also use error_reporting() in your bootstrap like so:

error_reporting(E_ALL & ~E_NOTICE);

The error reporting levels a documented in the PHP manual.

like image 71
Benjamin Cremer Avatar answered Jan 29 '23 00:01

Benjamin Cremer