Re: RE: Unicode conversion exceptions and memory leaks
| From: | Derick Rethans | Date: | Fri, 14 Apr 2006 10:51:47 +0000 |
| Subject: | Re: RE: Unicode conversion exceptions and memory leaks | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22759@lists.php.net to get a copy of this message | ||
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?
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org