Has this always been the case?

From: Date: Fri, 31 May 2013 10:57:13 +0000
Subject: Has this always been the case?
Groups: php.general 
Request: Send a blank email to php-general+get-321290@lists.php.net to get a copy of this message
Hi. Both <?php class Oddity{ public $var = 'a' . 'b'; } ?> and <?php class Oddity{ const A_VAR = 'a' . 'b'; } ?> produce ... PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in - on line 3 For properties, has this always been the case? Admittedly, this is the first time I've ever written code to assign a concatenated string to a static property ... static protected $s_NormaliserScript = __DIR__ . '/normalizedError.php'; And I was just surprised. That's all. Regards, Richard. P.S. Happy Friday! -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY

« previous php.general (#321290) next »