Req #46441 [Opn->Csd]: Bitwise or not available in class definition
| From: | requinix@php.net | Date: | Sun, 02 Nov 2014 01:41:47 +0000 |
| Subject: | Req #46441 [Opn->Csd]: Bitwise or not available in class definition | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188417@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=46441&edit=1
ID: 46441
Updated by: requinix@php.net
Reported by: cpriest at warpmail dot net
Summary: Bitwise or not available in class definition
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux/Apache
PHP Version: 5.2.6
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
New Comment:
Supported in 5.6.
Previous Comments:
------------------------------------------------------------------------
[2008-10-31 22:16:26] cpriest at warpmail dot net
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=46441&edit=1