Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98128 invoked from network); 27 May 2003 13:49:35 -0000 Received: from unknown (HELO ied.ac.cn) (211.99.43.218) by pb1.pair.com with SMTP; 27 May 2003 13:49:35 -0000 Received: (qmail 11675 invoked by uid 610); 27 May 2003 21:13:08 +0800 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 May 2003 21:13:08 +0800 Date: Tue, 27 May 2003 21:13:08 +0800 (CST) X-X-Sender: hewei@web.ied.ac.cn To: internals@lists.php.net cc: Andrei Zmievski Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: I caught the aggregation bug! From: hewei@ied.org.cn (Wei He) Hi, My mail system have encountered some problem so I'm afraid the following message was not posted successfully. Here it is again. Please forgive me if it is duplicated. Wei He ---------- Forwarded message ---------- Date: Fri, 23 May 2003 23:44:52 +0800 (CST) Subject: I caught the aggregation bug! Hi, This short script can reproduce the aggregation bug I reported above. class bar { function doit() { print " Doing...\n"; } } class foo { function foo() { print_r(aggregation_info($this)); aggregate($this, "bar"); } function spawn() { return new foo(); } } $a = new foo(); $a->doit(); $b = $a->spawn(); $b->doit(); unset($a); $c = $b->spawn(); $c->doit(); Besides 'unset($a)', '$a = new foo()' will also cause the same problem. Wei He