Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60369 invoked by uid 1010); 20 Dec 2005 23:51:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60354 invoked from network); 20 Dec 2005 23:51:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2005 23:51:56 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:45569] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F0/82-14561-C1998A34 for ; Tue, 20 Dec 2005 18:51:56 -0500 Received: from [192.168.1.3] (dslb-084-063-001-029.pools.arcor-ip.net [84.63.1.29]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id E37AE610284; Wed, 21 Dec 2005 01:00:40 +0100 (CET) Date: Wed, 21 Dec 2005 00:53:36 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <426534116.20051221005336@marcus-boerger.de> To: Daine Mamacos Cc: Alan Pinstein , PHP In-Reply-To: <1583077781.20051220212730@marcus-boerger.de> References: <20051216141608.M76819@reverseorder.net> <124842700.20051216203820@marcus-boerger.de> <20051219100552.M48206@reverseorder.net> <1649362906.20051219201607@marcus-boerger.de> <20051220134857.M91845@reverseorder.net> <6E2D0033-4F34-42D2-9C2B-EF59C62B83B6@mac.com> <20051220171533.M69638@reverseorder.net> <1583077781.20051220212730@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] exceptions in the destructor From: helly@php.net (Marcus Boerger) Hello Daine, > a) i didn't contradict myself - you obviously didn't really follow > what i wrote > b) you can force calling the destructor by using unset() or = null; > but only if reference count is 1. > c) exceptions are 'thrown' not called, maybe you didn't use throw new > exception here or you were just writing a bit weired? > d) as said already several times (not only to you) exceptions *can* > be thrown in destructors > e) this doesn't belong in internals@ to not forget to mention: the only thing you cannot do is throwing an exception while an exception is already pending. regards marcus