Re: Errors, Exceptions et al

From: Date: Wed, 30 Dec 2009 13:08:18 +0000
Subject: Re: Errors, Exceptions et al
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-46570@lists.php.net to get a copy of this message
Hans-Peter Oeri wrote: > The problem for me as a php end-user currently is, that no coherent > error behaviour in php exists. Core functions only issue errors, intl To be honest I prefer an inconsistent but stable error mechanism. Allowing to change the error behaviour (e.g. something as extreme as allowing to convert all internal errors to exceptions via ini setting - I know that's not part of this proposal, just using it as an example) leads to another inconsistency: Depending on the hosting provider and/or frameworks/modules used you'd have to write different error handlers. Suppose you want to write an open source application which has to work on all different kind of environments: It seems to me that making error behaviour configurable would make things harder rather than easier. One of the nice things about PHP it's easy to learn and knowledge & code is (most of the time) transferable amongst different instances of PHP. Regards, - Chris

« previous php.internals (#46570) next »