On 3 August 2011 00:51, Stas Malyshev <smalys...@sugarcrm.com> wrote: > Hi! > > On 8/2/11 7:51 AM, Etienne Kneuss wrote: >> >> The (historic) reason is that the toString conversion occurs at >> various places in the engine, and in some of them, throwing exceptions >> caused trouble. It is not clear whether this limitation it still >> required. In any case, it could almost certainly be fixed. > > In theory, yes. In practice, that means ensuring every place in the engine > that does convert_to_string() can be safely interrupted by an exception and > can handle that exception properly. This is pretty hard to do. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 >
What would be a good way to explain this in the documentation. Just saying that you can't is only going to present more questions. Explaining it a way that isn't too technical, but covers the basis would be good. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea