Re: RE: Unicode conversion exceptions and memory leaks
| From: | Andi Gutmans | Date: | Fri, 14 Apr 2006 16:50:53 +0000 |
| Subject: | Re: RE: Unicode conversion exceptions and memory leaks | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22765@lists.php.net to get a copy of this message | ||
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