ID: 27022 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: Zend Engine 2 problem +Bug Type: Feature/Change Request Operating System: * PHP Version: 5CVS-2004-01-23 (dev) New Comment:
it is a feature request. Previous Comments: ------------------------------------------------------------------------ [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/?id=27022&edit=1