#33444 [Opn->Bgs]: resterict access on constants

From: Date: Mon, 03 Apr 2006 11:36:34 +0000
Subject: #33444 [Opn->Bgs]: resterict access on constants
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95268@lists.php.net to get a copy of this message
ID: 33444 Updated by: tony2001@php.net Reported By: j dot amel83 at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Win XP, Apache 2.0.54 PHP Version: 5.0.4 New Comment: Duplicate of bug #27022. Previous Comments: ------------------------------------------------------------------------ [2005-06-23 09:03:19] j dot amel83 at gmail dot com define* ------------------------------------------------------------------------ [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 (#95268) next »