Re: __toString()
| From: | Cristiano Duarte | Date: | Sun, 14 Dec 2003 15:41:33 +0000 |
| Subject: | Re: __toString() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6449@lists.php.net to get a copy of this message | ||
Em Sun, 14 Dec 2003 15:41:10 +0100, Sebastian Bergmann escreveu:
> Andi Gutmans wrote:
>> It is supported by "print" and for internal extensions such as
>> SimpleXML which require this.
>
> How is it supported by "print" when
>
> print $defect->thrownException()
>
> does not work but the object returned from thrownException() has a
> __toString() method?
IMHO I think it should be supported by print (echo). Without,
this support, it will be only a naming convention...
Cristiano Duarte