Re: RE: Unicode conversion exceptions and memory leaks

From: Date: Fri, 14 Apr 2006 17:24:14 +0000
Subject: Re: RE: Unicode conversion exceptions and memory leaks
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-22766@lists.php.net to get a copy of this message
We had a .. bit of discussion on IRC about this. I will post my reply soon, once I've had sufficient time to cool down. -Andrei On Apr 14, 2006, at 9:50 AM, Andi Gutmans wrote:
Amen. At 09:40 AM 4/14/2006, Pierre wrote:
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 (#22766) next »