On 04/04/2012 02:42 AM, Alan Knowles wrote:

> Rather than this hap-hazard approach to ensuring code is correctly
> handling error conditions would it not be far better for the engine to
> be advising of situations where this may be occurring before they
> occur.. in the same way undefined variables issue warnings.  writing
> code that throws exceptions should throw warnings if it's likely that it
> is not handled.

Well, I don't disagree with you. This is why we don't throw exceptions
from the core of PHP. But I don't see how the engine can warn you about
this case in any sort of compatible way that isn't likely to drive
people crazy with warnings on perfectly valid code.

-Rasmus


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to