ZE2 , static variables and friends

From: Date: Tue, 07 Jan 2003 15:18:41 +0000
Subject: ZE2 , static variables and friends
Groups: php.dev 
Request: Send a blank email to php-dev+get-93220@lists.php.net to get a copy of this message
Why can't I do this: -- class test { static $foo = ''; } class test2 { var $how = 3; } $bar = new test2; test::$foo = $bar; echo "How ? ".test::$foo->$bar; -- output gives me 'How ? ' Is it a PHP/ZE2 bug? If not, how to do that right ? -- NetClub'ment votre Mickael BAILLY http://www.netclub.fr/

« previous php.dev (#93220) next »