> > > Same restrictions could be applied to this magic method: > > > http://us3.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring > > > > By this, I mean, no exceptions should be thrown in this method and return > > value MUST be an array. > > Exceptions cannot be thrown from inside __toString() because that's > hard to implement; it's not a "feature" that anybody wanted. >
That is why I said 'could be applied'. I don't currently know whether this will be hard to implement. Maybe these restrictions are unneeded but I prefer to be stricter than necessary as it generally make it easier to implement. But thanks for the clarification.