php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69343 bug with string concatenation in class properties
Submitted: 2015-04-01 09:06 UTC Modified: 2015-04-01 09:10 UTC
From: killer8080 at yandex dot ru Assigned: nikic (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.23 OS: GNU/Linux Debian wheezy
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: killer8080 at yandex dot ru
New email:
PHP Version: OS:

 

 [2015-04-01 09:06 UTC] 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 ';' 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-01 09:10 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2015-04-01 09:10 UTC] nikic@php.net
Supported as of PHP 5.6.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC