|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-11-02 01:41 UTC] requinix@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: requinix
[2014-11-02 01:41 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun May 24 03:00:01 2026 UTC |
Description: ------------ Bitwise | and & are not available in class definition areas. Reproduce code: --------------- <?php class a { const FLAG_1 = 1; const FLAG_2 = 2; protected $Flags = self::FLAG_1 | self::FLAG_2; } Expected result: ---------------- Properly compiled and having $Flags = 3 upon instantiation. Actual result: -------------- Compile error, expected ';' where '|' is.