Problem with classes

From: Date: Sat, 22 Apr 2000 12:55:43 +0000
Subject: Problem with classes
Groups: php.dev 
Request: Send a blank email to php-dev+get-18126@lists.php.net to get a copy of this message
Hello! When I used the following construction in PHP3 all was fine class C { var $var1="" function C() { $this->var1="aaa"; } } $C1 = new C; class A extends B { var $var1 = $C_1->var1; } But now, when I have upgraded to PHP4betta3 I get parse error in the string var $var1 = $C_1->var1; why? If you can help me, please answer to my mail directly to, cause I'm not a subscriber of this lists. Sincerely yours, - Kitya Karlson AKA Nikita Kojekine http://www.karlson.ru (KNE-RIPN)

« previous php.dev (#18126) next »