Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41391 invoked by uid 1010); 14 Dec 2003 18:06:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41367 invoked from network); 14 Dec 2003 18:06:09 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 14 Dec 2003 18:06:09 -0000 Received: (qmail 874 invoked by uid 546); 14 Dec 2003 18:06:09 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Dec 2003 18:06:09 -0000 Date: Sun, 14 Dec 2003 13:06:09 -0500 (EST) X-X-Sender: adam@miranda.org To: Sebastian Bergmann cc: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] __toString() From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Sun, 14 Dec 2003, Sebastian Bergmann wrote: > How is it supported by "print" when > > print $defect->thrownException() > > does not work but the object returned from thrownException() has a > __toString() method? That's part of my problem with __toString, there's a difference between these two: print $defect->thrownException(); print $defect->thrownException() . "\n"; I can't remember how things finally ended up, but originally the first one worked while the second didn't. I advocated adding support for the second, but Andi said there were technical problems. Maybe we ended up also disabling the first because it was confusing. -adam -- adam@trachtenberg.com