Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54107 invoked by uid 1010); 15 Dec 2003 06:09:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54045 invoked from network); 15 Dec 2003 06:09:31 -0000 Received: from unknown (HELO mail.de-punkt.de) (62.4.81.205) by pb1.pair.com with SMTP; 15 Dec 2003 06:09:31 -0000 Received: (qmail 9271 invoked by uid 508); 15 Dec 2003 06:09:28 -0000 Received: from sb@sebastian-bergmann.de by webby by uid 511 with qmail-scanner-1.16 (f-prot: 3.12. spamassassin: 2.60. Clear:. Processed in 0.210201 secs); 15 Dec 2003 06:09:28 -0000 Received: from unknown (HELO wopr) (sb@de-punkt.de@80.142.61.128) by webby.de-punkt.de with SMTP; 15 Dec 2003 06:09:28 -0000 Received: from wopr [127.0.0.1] by wopr (192.168.0.1) (userid 8) with Hamster-NewsToMail-Gate (Classic Hamster Version 2.0 Build 2.0.2.2) ; Mon, 15 Dec 2003 07:08:18 +0100 Date: Mon, 15 Dec 2003 07:08:18 +0100 Organization: www.sebastian-bergmann.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en References: <5.1.0.14.2.20031214151626.022a8760@127.0.0.1> <20031214144148.A4A59247@blacksheep.csh.rit.edu> <20031215013514.GB29665@csh.rit.edu> In-Reply-To: <20031215013514.GB29665@csh.rit.edu> To: internals@lists.php.net Sender: admin Lines: 30 X-Qmail-Scanner-Message-ID: <10714685685269260@webby> Subject: Re: [PHP-DEV] __toString() From: sebastian@php.net (Sebastian Bergmann) Message-ID: Jon Parise wrote: > Hopefully, this still works (don't have a recent PHP5 build to try): > > print (string)$defect->thrownException(); > > The explicit cast also addresses this case: > > print (string)$defect->thrownException() . "\n"; bar; } } $foo = new Foo; print $foo; ?> prints Object id #1 -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/