If you are using Zend_Application , put the following line in application.ini
phpsettings.error_reporting = E_ALL & ~E_NOTICE
You can also use error_reporting() in your bootstrap:
error_reporting(E_ALL & ~E_NOTICE);
Error reporting levels described in the PHP manual .
source share