ID:               33444
 User updated by:  j dot amel83 at gmail dot com
 Reported By:      j dot amel83 at gmail dot com
 Status:           Open
 Bug Type:         Class/Object related
 Operating System: Win XP, Apache 2.0.54
 PHP Version:      5.0.4
 New Comment:

define*


Previous Comments:
------------------------------------------------------------------------

[2005-06-23 08:59:30] j dot amel83 at gmail dot com

Description:
------------
there is an error when I try to difine a constant with
protected/private modifier

Reproduce code:
---------------
<?php
class User {
                /* 
                 *max time in seconds that a user can be idle in the system 
                 */
       protected const MAX_IDLE_TIME = 900;
           
           /*
            *
                *
                */
}

Actual result:
--------------
Parse error: syntax error, unexpected T_CONST, expecting T_VARIABLE in
D:\ApacheWebServerRootDirectory\ab-candles\bug.php on line 6


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


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

Reply via email to