Edit report at http://bugs.php.net/bug.php?id=50113&edit=1
ID: 50113 Updated by: j...@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