Re: RE: Unicode conversion exceptions and memory leaks

From: Date: Fri, 14 Apr 2006 16:40:52 +0000
Subject: Re: RE: Unicode conversion exceptions and memory leaks
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-22764@lists.php.net to get a copy of this message
On 4/14/06, Dmitry Stogov <dmitry@zend.com> wrote: > In general, exceptions as result of type conversion are good. I disagree here, exceptions are... exceptions. That means they should be used in rare cases. Unicode (and string manipulation in gerenal) should not use exceptions. I see no cases which justify an exception. > Half year ago we disabled exceptions in __toString() especially because of > this reason. > I prefer disable exceptions for unicode conversions too. Same here, and even if PHP will allow it. String manipulations (unicode included) must remain a quiet and easy operation. This should be a goal for each extensions, give a way to make PHP silent (by default or not does not matter but it must be settable). --Pierre

« previous php.internals (#22764) next »