#38836 [NEW]: string concatenation operator does not work across multiple lines in classes
| From: | evoltech at 2inches dot com | Date: | Fri, 15 Sep 2006 05:34:31 +0000 |
| Subject: | #38836 [NEW]: string concatenation operator does not work across multiple lines in classes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-102210@lists.php.net to get a copy of this message | ||
From: evoltech at 2inches dot com
Operating system: Linux
PHP version: 5CVS-2006-09-15 (snap)
PHP Bug Type: Strings related
Bug description: string concatenation operator does not work across multiple lines in classes
Description:
------------
PHP is great! I love this language, and I apreciate the work of the
developers ... you are all very awesome!
The following code works as I expect:
<?php
$var = "this" .
"that" .
"other\n";
print $var;
?>
thisthatother
When I use the concatenation operator in a class however I get a parse
error.
Reproduce code:
---------------
<?php
class foo
{
public static $var = "this" .
"that" .
"other\n";
}
print foo::$var;
?>
Expected result:
----------------
thisthatother
Actual result:
--------------
Parse error: syntax error, unexpected '.', expecting ',' or ';'
--
Edit bug report at http://bugs.php.net/?id=38836&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38836&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38836&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38836&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38836&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38836&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38836&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38836&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38836&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38836&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38836&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38836&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38836&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38836&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38836&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38836&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38836&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38836&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38836&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38836&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38836&r=mysqlcfg