#33444 [Opn]: resterict access on constants

From: Date: Thu, 23 Jun 2005 07:03:20 +0000
Subject: #33444 [Opn]: resterict access on constants
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80865@lists.php.net to get a copy of this message
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

« previous php.bugs (#80865) next »