Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97439 invoked by uid 1010); 11 Dec 2006 10:08:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97423 invoked from network); 11 Dec 2006 10:08:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2006 10:08:28 -0000 Authentication-Results: pb1.pair.com header.from=mp@webfactory.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mp@webfactory.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webfactory.de from 195.227.108.51 cause and error) X-PHP-List-Original-Sender: mp@webfactory.de X-Host-Fingerprint: 195.227.108.51 wfserver02.wf-ppr.de Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [195.227.108.51] ([195.227.108.51:41752] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/41-00543-AAA1D754 for ; Mon, 11 Dec 2006 03:46:05 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 11 Dec 2006 09:45:27 +0100 Message-ID: <00A2E2156BEE8446A81C8881AE117F1949C80C@companyweb> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] [RFC] Magic Method that handles unset($object) Thread-Index: Accca3l4DXVWPeX/Tga1dO7zKpxH9QAlON8g To: "Etienne Kneuss" Cc: Subject: AW: [PHP-DEV] [RFC] Magic Method that handles unset($object) From: mp@webfactory.de ("Matthias Pigulla") =20 > -----Urspr=FCngliche Nachricht----- > Von: Etienne Kneuss [mailto:colder@php.net]=20 > Gesendet: Sonntag, 10. Dezember 2006 15:55 > Cc: internals@lists.php.net > Betreff: Re: [PHP-DEV] [RFC] Magic Method that handles unset($object) =20 > You could use references, you would have to move some code=20 > around, though. > I'm not sure that's exactly what you want, but give it a shot: ...=20 > $parent =3D &setup(); > $parent =3D null; This happens to work in this case because when you assign null to = $parent you break the reference circle in the parent/child-relationship = "by the way" because you work with references. It's not a general = solution, though. mp.