strange stuff in a class

From: Date: Wed, 10 Jul 2002 09:50:27 +0000
Subject: strange stuff in a class
Groups: php.general 
Request: Send a blank email to php-general+get-106737@lists.php.net to get a copy of this message
Hi, Do anybody know a work a round for this: <?php class test { function test() { $globals['test2'] = &$this; } } $test1 = new test(); ?> The problem hier is that $globals['test2'] is a copy of $globals['test1'] not a references. Anybody an idee?

« previous php.general (#106737) next »