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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to