|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-08-06 15:39 UTC] reeze@php.net
-Type: Bug
+Type: Feature/Change Request
[2013-08-10 22:36 UTC] ab@php.net
-Status: Open
+Status: Wont fix
[2013-08-10 22:36 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Description: ------------ Workaround: $obj = $b->obj; echo $obj::foo; Test script: --------------- <?php class a{ const foo = "test"; } class b{ public $obj = null; public function __construct(){ $this->obj = new a; } } $b = new b; echo $b->obj::foo; // Parse error! Expected result: ---------------- test Actual result: -------------- Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)