Something broke with classes

From: Date: Mon, 31 Jan 2000 16:48:52 +0000
Subject: Something broke with classes
Groups: php.version4 
Request: Send a blank email to php-version4+get-9591@lists.php.net to get a copy of this message
Something broke with classes when creating class vars dynamically. <? class foo { function foo() { $bar = "baz"; $this->$bar = "test"; } } $a = new foo; var_dump($a); ?> Should result in $a->baz being set to "test" (and it worked in couple week old version), but it's not working now. -Andrei * E Pluribus UNIX. *

« previous php.version4 (#9591) next »