|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-28 12:47 UTC] jani@php.net
-Status: Open
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-12-28 12:47 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 23:00:01 2025 UTC |
Description: ------------ I cannot declare a const a i would like to although i only use constant data. imho a concatenation of constant strings should be possible. the same as any operation on only constant values should be allowed. please? :-D Reproduce code: --------------- class SiteConfig { const HOST = 'www.test.com'; const DOC_ROOT = '/sites/aa/2484356/htdocs/'; const WEBMASTER_MAIL = 'webmaster@test.com'; const DEBUG = false; } class AppConfig { const HOME = SiteConfig::DOC_ROOT.'inc/lib/app/'; } Expected result: ---------------- AppConfig::HOME == '/sites/aa/2484356/htdocs/inc/lib/app/' Actual result: -------------- syntax error