PHP 4.0 Bug #8033 Updated: parse error

From: Date: Wed, 29 Nov 2000 16:10:32 +0000
Subject: PHP 4.0 Bug #8033 Updated: parse error
Groups: php.dev 
Request: Send a blank email to php-dev+get-39593@lists.php.net to get a copy of this message
ID: 8033 User Update by: ce@beer.com Old-Status: Closed Status: Duplicate Bug Type: Scripting Engine problem Description: parse error define(ASD, 1); define(DSA, 2); $flags = ASD | DSA; //this one is OK class test{ var $flags = ASD | DSA; // on this line it gives parse error } I downloaded the latest CVS - the same problem. I havn't test with previous versions. Previous Comments: --------------------------------------------------------------------------- [2000-11-29 10:57:34] ce@beer.com define(ASD, 1); define(DSA, 2); $flags = ASD | DSA; //this one is OK class test{ var $flags = ASD | DSA; // on this line it gives parse error } I downloaded the latest CVS - the same problem. I havn't test with previous versions. --------------------------------------------------------------------------- [2000-11-29 10:51:27] stas@php.net var initializers can be only constants. --------------------------------------------------------------------------- [2000-11-29 10:49:37] ce@beer.com $flags = ASD | DSA; //this one is OK class test{ var $flags = ASD | DSA; // on this line it gives parse error } I downloaded the latest CVS - the same problem. I havn't test with previous versions. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8033

« previous php.dev (#39593) next »