Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88514 invoked by uid 1010); 24 May 2004 12:30:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88490 invoked from network); 24 May 2004 12:30:21 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 24 May 2004 12:30:21 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 36F7A6CFAD; Mon, 24 May 2004 14:30:21 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 2353A6D8A4; Mon, 24 May 2004 14:30:20 +0200 (CEST) Received: from cschneid.com (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by xaxa.search.ch (Postfix) with ESMTP id A7BEF6CFAD; Mon, 24 May 2004 14:30:16 +0200 (CEST) Message-ID: <40B1EAD7.1020800@cschneid.com> Date: Mon, 24 May 2004 14:30:15 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Jason Garber Cc: internals@lists.php.net References: <5.1.0.14.0.20040523174015.02197460@mail.ionzoft.com> In-Reply-To: <5.1.0.14.0.20040523174015.02197460@mail.ionzoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: Destructors From: cschneid@cschneid.com (Christian Schneider) Jason Garber wrote: > Based on the above example, the $oSession->__destruct() method relies on > the $oDB object still being usable. How can this be structured to > ensure that the DB object does not get released first? Adding something like $oSession->db = $oDB; should work in my opinion. Didn't test it and I have no real experience with destructors. - Chris