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