Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32311 invoked by uid 1010); 30 Jun 2007 15:19:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32296 invoked from network); 30 Jun 2007 15:19:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2007 15:19:16 -0000 Authentication-Results: pb1.pair.com header.from=ralph@smashlabs.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ralph@smashlabs.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain smashlabs.com from 67.15.58.61 cause and error) X-PHP-List-Original-Sender: ralph@smashlabs.com X-Host-Fingerprint: 67.15.58.61 openrce.org Received: from [67.15.58.61] ([67.15.58.61:52282] helo=SMASHER.SMASHlabs.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/35-24942-17476864 for ; Sat, 30 Jun 2007 11:19:14 -0400 Received: (qmail 26048 invoked from network); 30 Jun 2007 10:19:10 -0500 Received: from cpe-24-28-16-86.austin.res.rr.com (HELO ?10.20.0.103?) (24.28.16.86) by smashlabs.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 30 Jun 2007 10:19:10 -0500 Message-ID: <46867450.3000707@smashlabs.com> Date: Sat, 30 Jun 2007 10:18:40 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: Jakob Buchgraber CC: internals@lists.php.net References: <34.E2.21924.65914864@pb1.pair.com> <58695.216.230.84.67.1183064548.squirrel@www.l-i-e.com> <5D.83.24942.9FE66864@pb1.pair.com> In-Reply-To: <5D.83.24942.9FE66864@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Exception thrown without a stack frame From: ralph@smashlabs.com (Ralph Schindler) I've run into this before.. essentially, you can't do that ;) http://us2.php.net/language.oop5.decon (second note) Nor, can you throw exceptions anytime after the engine starts shutting down. -ralph Jakob Buchgraber wrote: > Okay, I can now reproduce the problem. Here is the code: > class Foo { > public function __destruct() { > throw new Exception(); > } > } > > $a = new Foo(); > ?> > > I couldn't reproduce it before as I didn't assign the instance of Foo to > a variable, however Christian Hoffmann pointed me out that I need to do > this in order to get the desired error. > > - Jakob >