Re: PHP 4.0 Bug #4894: Parse Error during variable initialization of a class

From: Date: Thu, 08 Jun 2000 11:39:11 +0000
Subject: Re: PHP 4.0 Bug #4894: Parse Error during variable initialization of a class
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-20560@lists.php.net to get a copy of this message
Hi, I think that's normal... With php4 you cannot initialize a class member with a function. I suppose "." is a function.... Derick michael.bell@rz.hu-berlin.de wrote: > From: michael.bell@rz.hu-berlin.de > Operating system: SunOS webmania 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-1 > PHP version: 4.0 Release Candidate 2 > PHP Bug Type: Compile Failure > Bug description: Parse Error during variable initialization of a class > > example code which works under php3 and not under php4 > > class test { > > var $name = "Michael ". > "Bell"; > > } > > The problem is the combination of ". \n " if You write > > var $name = "Michael Bell"; > > The Problem is away. > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Derick Rethans JDI Media Solutions H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands e-mail: d.rethans@jdimedia.nl http://www.jdimedia.nl/

« previous php.dev (#20560) next »