There seems to be times (not all the time) when the below code gets run and it overrides any error_reporting settings you have and so it hides warnings and such. I don't really understand the comment and why it needs to do this. This also overrides drupal's admin setting where you set it to show all messages. It also prevents
cv scripts from showing warnings for example.
// explicitly setting error reporting, since we cannot handle drupal related notices // @todo 1 = E_ERROR, but more to the point setting error reporting deep in code // causes grief with debugging scripts error_reporting(1);