== Quote from Marcus Boerger ([EMAIL PROTECTED])'s article
> No those are read access members to private property members. When you lok
> at the exception class:
>   php -r 'reflection_class::export("exception");'
> then you'll encounter that you can overload __toString() and the
> __construct(). Or in other words you should use 'print $e' or '(string)$e'
> or '$e->__toString()'.

If we can only overload __toString() to have different information displayed (not 
presentation, but information), the class will be inconsistent. Moreover, if the 
exception is not caught, PHP will display it using the Exception's members, not the 
overloaded __toString().

Stephane

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to