Bug #69343 [NEW]: bug with string concatenation in class properties
| From: | killer8080 at yandex dot ru | Date: | Wed, 01 Apr 2015 09:06:28 +0000 |
| Subject: | Bug #69343 [NEW]: bug with string concatenation in class properties | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-191760@lists.php.net to get a copy of this message | ||
From: killer8080 at yandex dot ru
Operating system: GNU/Linux Debian wheezy
PHP version: 5.5.23
Package: Compile Failure
Bug Type: Bug
Bug description:bug with string concatenation in class properties
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 bug report at https://bugs.php.net/bug.php?id=69343&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69343&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69343&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69343&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69343&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69343&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69343&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69343&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69343&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69343&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69343&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69343&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69343&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69343&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69343&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69343&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69343&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69343&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69343&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69343&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69343&r=mysqlcfg