Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18402 invoked by uid 1010); 24 May 2004 14:33:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18217 invoked from network); 24 May 2004 14:33:42 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 24 May 2004 14:33:42 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 465E96D82F; Mon, 24 May 2004 16:33:42 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 2CCBD6D8A6; Mon, 24 May 2004 16:33:41 +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 81DFD6D82F; Mon, 24 May 2004 16:33:37 +0200 (CEST) Message-ID: <40B207C0.5050402@cschneid.com> Date: Mon, 24 May 2004 16:33:36 +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: Adam Maccabee Trachtenberg Cc: Jason Garber , internals@lists.php.net References: <5.1.0.14.0.20040523174015.02197460@mail.ionzoft.com> <40B1EAD7.1020800@cschneid.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] Re: Destructors From: cschneid@cschneid.com (Christian Schneider) Adam Maccabee Trachtenberg wrote: > That's not guaranteed to work. PHP 5 does not guarantee that object > destructors will be called in any particular order or that the order > will remain constant from one invocation to another. Ok, I was under the impression that PHP won't call any destructors of objects still in use but from your comment I guess it does two passes: First collect a list of objects to destruct (which will be everything at the end of the script) and then call all the destructors (in random order). Ignore my first comment, it was posted without any insight in the internals of the GC mechanism :-) - Chris