Bug #69343 [Opn->Csd]: bug with string concatenation in class properties
| From: | nikic@php.net | Date: | Wed, 01 Apr 2015 09:10:26 +0000 |
| Subject: | Bug #69343 [Opn->Csd]: bug with string concatenation in class properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-191761@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69343&edit=1
ID: 69343
Updated by: nikic@php.net
Reported by: killer8080 at yandex dot ru
Summary: bug with string concatenation in class properties
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: GNU/Linux Debian wheezy
PHP Version: 5.5.23
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Supported as of PHP 5.6.
Previous Comments:
------------------------------------------------------------------------
[2015-04-01 09:06:28] killer8080 at yandex dot ru
Description:
------------
PHP version: 5.5.23-1~dotdeb.2
System Linux localhost 3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u2 i686
Apache Version Apache/2.2.22 (Debian)
Apache API Version 20051115
This code generates: Parse error: syntax error, unexpected '.', expecting ','
or ';' in ...
PHP installed from dotdeb.org repository
Test script:
---------------
<?php
class Test
{
public $var = 'foo '.'bar'; // parse error
}
--------
<?php
$var = 'foo '.'bar'; // this works normaly
Expected result:
----------------
expcets normal string concatenation
Actual result:
--------------
Parse error: syntax error, unexpected '.', expecting ',' or ';'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69343&edit=1