Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5292 invoked by uid 1010); 24 May 2004 15:25:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5258 invoked from network); 24 May 2004 15:25:44 -0000 Received: from unknown (HELO basiczlager.backendmedia.com) (195.75.116.242) by pb1.pair.com with SMTP; 24 May 2004 15:25:44 -0000 Received: from localhost (localhost [127.0.0.1]) by basiczlager.backendmedia.com (Postfix) with ESMTP id 99F4982DB3; Mon, 24 May 2004 17:25:50 +0200 (CEST) Received: from basiczlager.backendmedia.com ([127.0.0.1]) by localhost (basiczlager [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17405-02; Mon, 24 May 2004 17:25:44 +0200 (CEST) Received: from [192.168.0.77] (port-212-202-169-220.dynamic.qsc.de [212.202.169.220]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by basiczlager.backendmedia.com (Postfix) with ESMTP id 4430A82D59; Mon, 24 May 2004 17:25:44 +0200 (CEST) Message-ID: <40B213D7.6050609@backendmedia.com> Date: Mon, 24 May 2004 17:25:11 +0200 Organization: BackendMedia GbR User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en MIME-Version: 1.0 To: john@coggeshall.org Cc: Adam Maccabee Trachtenberg , Christian Schneider , Jason Garber , PHP Internals References: <5.1.0.14.0.20040523174015.02197460@mail.ionzoft.com> <40B1EAD7.1020800@cschneid.com> <40B207C0.5050402@cschneid.com> <40B20889.3080909@backendmedia.com> <1085412154.8410.5.camel@coogle.localdomain> In-Reply-To: <1085412154.8410.5.camel@coogle.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] Re: Destructors From: smith@backendmedia.com (Lukas Smith) John Coggeshall wrote: > On Mon, 2004-05-24 at 10:40, Adam Maccabee Trachtenberg wrote: > >>Right. That'll also work. :) > > > I suppose you could push object references on a stack and register a > shutdown function which pops / unset()s if you really wanted a order to > it.. (that's an untested theory though) Which is what PEAR does to "emulate" destructors. But its doesnt really give you much control over the order of the stack. Its just the order in which you have created your instances. Anyways this is more and more turning into php-general@ material :-) regards, Lukas Smith