From: samuel dot hapak at gmail dot com Operating system: Debian PHP version: 5.2.11 PHP Bug Type: Feature/Change Request Bug description: No way to break long strings when declaring class constant
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 bug report at http://bugs.php.net/?id=50113&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50113&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50113&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50113&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50113&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50113&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50113&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50113&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50113&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50113&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50113&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50113&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50113&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50113&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50113&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50113&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50113&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50113&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50113&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50113&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50113&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50113&r=mysqlcfg
