Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83510 invoked by uid 1010); 9 Dec 2005 06:04:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83495 invoked from network); 9 Dec 2005 06:04:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2005 06:04:29 -0000 X-Host-Fingerprint: 66.11.173.122 unknown Received: from ([66.11.173.122:5446] helo=interjinn.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B5/41-14828-D6E19934 for ; Fri, 09 Dec 2005 01:04:29 -0500 Received: from blobule.suds (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id 543E81435E2; Fri, 9 Dec 2005 01:03:51 -0500 (EST) To: Alan Pinstein Cc: internals@lists.php.net In-Reply-To: References: <43970D54.1040206@zend.com> <63053C31-56D1-49A3-8D24-4FC41188A92A@mac.com> <7.0.0.16.2.20051208210843.059ef560@zend.com> Content-Type: text/plain Organization: InterJinn Message-ID: <1134108232.17884.0.camel@blobule.suds> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Fri, 09 Dec 2005 01:03:52 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] $this->this and avoiding circular references From: robert@interjinn.com (Robert Cummings) On Fri, 2005-12-09 at 00:21, Alan Pinstein wrote: > > And, if it's just lucky, then what is the solution to the problem? Am > I just SOL? Is the answer simply that if you *need* to create > circular references in PHP, then you *must* accept memory leakage? If you know you have a circular reference you can always use unset() to break the reference and thus break the circle. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'