|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 23:00:01 2025 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.