Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43129 invoked by uid 1010); 14 Dec 2003 12:48:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43016 invoked from network); 14 Dec 2003 12:48:57 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 14 Dec 2003 12:48:57 -0000 Received: from [192.168.1.100] (p508EAED5.dip.t-dialin.net [80.142.174.213]) by shiva.mind.de (Postfix) with ESMTP id 6B95E97B66; Sun, 14 Dec 2003 13:48:51 +0100 (CET) Date: Sun, 14 Dec 2003 13:46:49 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <42746669312.20031214134649@marcus-boerger.de> To: Sebastian Bergmann Cc: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] __toString() From: helly@php.net (Marcus Boerger) Hello Sebastian, Sunday, December 14, 2003, 8:56:15 AM, you wrote: > The following code from PHPUnit stopped working after the recent changes > to __toString() > protected function printDefectTrace(PHPUnit_Framework_TestFailure > $defect) { > print $defect->thrownException() . "\n"; > print PHPUnit_Runner_BaseTestRunner::getFilteredStack( > $defect->thrownException() > ); > } > The > print $defect->thrownException() . "\n"; > line worked fine before and printed the result of > $defect->thrownException()->__toString() > Is this the intended behaviour? Yes. We found out that calling __toString() automatically in any place in the executor has unsolveable problems right now (ask Andi for details). -- Best regards, Marcus mailto:helly@php.net