Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12040 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18449 invoked by uid 1010); 9 Aug 2004 17:29:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18241 invoked from network); 9 Aug 2004 17:29:20 -0000 Received: from unknown (HELO took.shire) (68.122.184.4) by pb1.pair.com with SMTP; 9 Aug 2004 17:29:20 -0000 Received: (qmail 32992 invoked by uid 1001); 9 Aug 2004 17:46:07 -0000 Date: Mon, 9 Aug 2004 17:46:07 +0000 To: internals@lists.php.net Message-ID: <20040809174607.GK6522@bagend.shire> Mail-Followup-To: internals@lists.php.net References: <20040808022353.GG6522@bagend.shire> <20040808111514.43930.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040808111514.43930.qmail@pb1.pair.com> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] Re: objects passed as reference in php5 From: curt@php.net (Curt Zirzow) * Thus wrote Ron Korving: > i think the object will only cease to exist when all references to it are > gone Well there does seem to be another layer of referencing, since the a simple assignment without &$ will simply reference the object but in a different way. The problem I'm running into there doesn't seem to be a way to reliably detstroy an object without the programmer keeping track of the variable assignments and removing those references as well. I'm not sure if its possible or even php's responsibility but perhaps provide a tool that allow's a programmer to explicity destroy an object? with something like: Destroy($obj); Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!