Following on from something i just read in another thread, one way of dealing with irksome error messages (E_WARNING) is to simply turn them off.
It is a surprisingly simple way of simplifying some of your code I suppose.
I have been running display_errors, and E_ALL for a few years now and never really give it a second thought.
Now I am only talking about on your development environment, and I am not particularly concerned about how you log Live server errors.
So, as you are working away do you display errors or not?
To what level?
Do you log them as well?
Let me know either way, and why you do that.