josh wrote:PHPHorizons wrote:If not, then make that bad boy throw some kind of nasty Exception

Bugs aren't exceptions ( in general ). It's rarely a good idea to write repetitive code [for every method], you'd have to remove to add functionality later.
Who said anything about bugs? Although php really doesn't use exceptions in the most of it's functions, for languages that do, it's entirely acceptable to throw an exception if a function is asked to do something it shouldn't.
Asking a function to do something it shouldn't is not necessarily a bug. For instance, suppose you want to open up a file, but the file doesn't exist, an exception can legitimately be thrown in that case. It doesn't mean it's a bug.
Cheers
(Before someone says I'm wrong, I'd just say, while I respect your opinion, there are languages like c# that does exactly what I outlined)