Re: [PHP4BETA] Undocumented change in class member initialization ?

From: Date: Wed, 11 Aug 1999 16:20:59 +0000
Subject: Re: [PHP4BETA] Undocumented change in class member initialization ?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3339@lists.php.net to get a copy of this message
This is fixed in Beta 2. Andi At 12:02 PM 8/10/99 +0200, Huba Gaspar wrote:
Hi! Is it intentional that the redefinition of preinitialized class variables is not work in php4 beta 1? class Father { var $name = "Peter"; } class Child extends Father { var $name = "Pal"; } That way of redefinition worked in php-3, but in php4 beta 1 $name can only be changed in a class method. I didn't found any reference to this new feature in the incompatibility list. Since I used it heavily in my code it makes me a lot of trouble (work) to port my old php3 code to php4. I understood that expressions can't be used in class member intialization any more but I think that what I mentioned is another incompatibility. I suggest including this change in the inclompatibility list if it's intentional or fixing it if it's a bug. Thanks Huba -- PHP 4 Beta
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#3339) next »