Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8569 invoked from network); 23 Oct 2008 12:27:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2008 12:27:14 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.169 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 66.249.92.169 ug-out-1314.google.com Received: from [66.249.92.169] ([66.249.92.169:37851] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/4D-44135-1AD60094 for ; Thu, 23 Oct 2008 08:27:14 -0400 Received: by ug-out-1314.google.com with SMTP id k3so1669927ugf.37 for ; Thu, 23 Oct 2008 05:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=8Wrmy///TmAzpEgE+qa6PNrTjoZU4wmKDLIuxNPDEts=; b=R3SViETR813jXvG2FO9aQn5nncp5hObBdODNHFFO6xgPdOxL+VB5OJFgZlrRa0zg5j pP0d0ZNPh3WNLD9DjlutiN4JNjcIpX7dRbqV4SvM3RvDFqSSv/IT2ckBOX1famIV3JUX CcEqiYelJaplI9AEKsyf4JSvUrSR/NHtPTFRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=eT0/N0WyYjOTixycsWZF7O4ScTzi51sDoGo40zh5Kz/E1Exc/K+saAUQrVTg9VcA8P 5cOq7yFJ3JdkcrcYobYV8ayCE6oCmiobVjGEjCa6909CvUzgwXxj0sbTDCiIMOQ2b/da cqdy9cW3ssXcJBoU5NA5gEmDLIszD99UOgQ34= Received: by 10.66.250.1 with SMTP id x1mr4561499ugh.4.1224764829645; Thu, 23 Oct 2008 05:27:09 -0700 (PDT) Received: by 10.67.89.3 with HTTP; Thu, 23 Oct 2008 05:27:09 -0700 (PDT) Message-ID: <9b3df6a50810230527q398ce943s383ad03401bd5b89@mail.gmail.com> Date: Thu, 23 Oct 2008 15:27:09 +0300 To: nathan@kraya.co.uk Cc: internals@lists.php.net, jani.taskinen@iki.fi In-Reply-To: <49006755.6060607@kraya.co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_51173_2246094.1224764829606" References: <48FED6DA.2090400@naenius.com> <200810222123.58206.larry@garfieldtech.com> <49005CB9.1070500@ead.fiocruz.br> <490065D8.8020109@sci.fi> <49006755.6060607@kraya.co.uk> Subject: Re: [PHP-DEV] Destructor Order From: arvids.godjuks@gmail.com ("Arvids Godjuks") ------=_Part_51173_2246094.1224764829606 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I think this should be implemented by user. If you are full OOP in your application, then just register all your objects in some global object (In my case I have a global singelton) and trigger hiv removal at the end of your application. If you have destructors written in every object - they will be destroied by chain correctly. Yes, this is design featchure, but a good one, because if you will move beyound PHP you will have to learn how to do it anyway sooner or laiter :) User knows the best how his objects should be destroied. PHP is slow enougth, any special functionality will make it more slow. Let's let developers do the optimization work for a while, may be they will find a way how to significantly boost PHP speed :) ------=_Part_51173_2246094.1224764829606--