What was unusual about this particular incident was that I didn't actually break the site - I just turned on the PHP warnings that said the site was broken.
All of a sudden, the site owner was getting emails from visitors saying his site was broken.
However, the site had been broken all along. The errors were still happening, and whatever data was being saved may have all kinds of errors in it.
PHP error messages
With PHP, you can choose what sort of errors you want displayed on the screen. All, errors, warnings, notices, or none.If you choose none, then your clients don't get to see any ugly PHP errors on your site.
If you show all errors, then your clients do see all these ugly messages. Changes are you or them will see the error, and then do something about it (fix it).
I consider it much better to have the error visible than to have the site failing silently and alerting nobody that there is a problem.
A better way again is to log the errors to a file, and have the log emailed to your developer every so often. This way, your clients don't get to see the nasty looking messages, but the developer does.
Errors happen all the time, so it's worthwhile to take the time to understand how the error reporting system works, and to ensure that errors don't happen quietly and unnoticed.

