Re: RE: Unicode conversion exceptions and memory leaks
| From: | Andi Gutmans | Date: | Fri, 14 Apr 2006 16:17:56 +0000 |
| Subject: | Re: RE: Unicode conversion exceptions and memory leaks | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22763@lists.php.net to get a copy of this message | ||
At 03:51 AM 4/14/2006, Derick Rethans wrote:
On Fri, 14 Apr 2006, Dmitry Stogov wrote: In general, exceptions as result of type conversion are good. But they does NOT work in PHP, because of exception mechanism design/implementation. Half year ago we disabled exceptions in __toString() especially because of this reason. I prefer disable exceptions for unicode conversions too. Yeah, I don't like it too much either. But remember that throwing exceptions is *not* the default here. The default is a warning which I even like less as you'll have to shut it up with the @ operator. Andrei, I think we discuss that at some point too, but I don't remember the outcome on that. Do you have the specific conversion error modes documented somewhere?I don't think it matters whether it's default or not. I think we shouldn't enable it. As I mentioned in my previous email there are a few reasons for that. I think this should be rolled back from CVS and not supported. Andi