#50113 [NEW]: No way to break long strings when declaring class constant
by Samuel Dot Hapak At Gmail Dot Com other posts by this author
Nov 7 2009 9:13AM messages near this date
#50114 [Opn]: DLL php_win32service for PHP 5.2.11
|
[PHP-DEV] Regarding constructions like func()[0]
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
|