Edit report at http://bugs.php.net/bug.php?id=27022&edit=1

 ID:                 27022
 Updated by:         [email protected]
 Reported by:        [email protected]
 Summary:            Class constant has no visibility modificator
 Status:             Open
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            Scripting Engine problem
 Operating System:   *
 PHP Version:        5CVS-2004-01-23 (dev)
 Block user comment: N
 Private report:     N

 New Comment:

Proper category.


Previous Comments:
------------------------------------------------------------------------
[2004-01-27 16:05:24] [email protected]

it is a feature request.

------------------------------------------------------------------------
[2004-01-27 15:59:16] [email protected]

Isn't this more of a feature request?



------------------------------------------------------------------------
[2004-01-23 12:47:45] [email protected]

Description:
------------
It is not possible to use visibility modificator like
public/protected/private on a class constant.

Reproduce code:
---------------
php -r "class fubar { protected const some_const = 123; }"

Actual result:
--------------
PHP Parse error:  parse error, unexpected T_CONST, expecting T_VARIABLE
in Command line code on line 1


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=27022&edit=1

Reply via email to