I caught the aggregation bug!

From: Date: Fri, 23 May 2003 15:44:52 +0000
Subject: I caught the aggregation bug!
Groups: php.internals 
Request: Send a blank email to internals+get-1933@lists.php.net to get a copy of this message
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

« previous php.internals (#1933) next »