Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57110 invoked by uid 1010); 14 Dec 2003 15:41:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57086 invoked by uid 1007); 14 Dec 2003 15:41:34 -0000 To: internals@lists.php.net Date: Sun, 14 Dec 2003 13:41:33 -0200 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-ID: References: <5.1.0.14.2.20031214151626.022a8760@127.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Posted-By: 200.196.104.198 Subject: Re: [PHP-DEV] __toString() From: cunha17@uol.com.br (Cristiano Duarte) 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