Req #50113 [Opn->Bgs]: No way to break long strings when declaring class constant
| From: | jani@php.net | Date: | Tue, 28 Dec 2010 20:35:08 +0000 |
| Subject: | Req #50113 [Opn->Bgs]: No way to break long strings when declaring class constant | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157367@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50113&edit=1
ID: 50113
Updated by: jani@php.net
Reported by: samuel dot hapak at gmail dot com
Summary: No way to break long strings when declaring class
constant
-Status: Open
+Status: Bogus
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Debian
PHP Version: 5.2.11
Block user comment: N
Private report: N
New Comment:
Same as bug #30177
Previous Comments:
------------------------------------------------------------------------
[2009-11-07 17:12:58] samuel dot hapak at gmail dot com
Description:
------------
Consider following example:
class Example
{
const LONG_SENTENCE = "This sentence is really very very very very
very very very very very very very very very very very very very very
very very very very very very long";
};
It is not possible to breakup the assigned string using dot operator,
and php also doesn't support neither c-like constant string
concatenation ("really " "very" -> "really very") or c-like line
continuation (end the line with backslash).
This is really annoying, cause I end with the code containing extra long
lines and I can't split them, making code unreadable without scrolling.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=50113&edit=1