#8194 [Opn->Csd]: Need for a "const" qualifier.

From: Date: Sat, 18 Jan 2003 18:57:33 +0000
Subject: #8194 [Opn->Csd]: Need for a "const" qualifier.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30500@lists.php.net to get a copy of this message
ID: 8194 Updated by: andrey@php.net Reported By: php@digdug.cx -Status: Open +Status: Closed Bug Type: Feature/Change Request PHP Version: 4.0.3pl1 New Comment: Yes, define() is longer to write but is useful. In PHP 5 there will be support for constants in classes. So wait for it :) Previous Comments: ------------------------------------------------------------------------ [2000-12-11 14:08:54] waldschrott@php.net would be nice performance-wise using classes especially where it sometimes happens that you are global'ing the same vars in several methods ------------------------------------------------------------------------ [2000-12-11 13:54:13] derick@php.net The same is true for me, I really like somthing like that. ------------------------------------------------------------------------ [2000-12-11 13:51:16] php@digdug.cx It would be really swell to have a qualifier that makes a variable visible in functions by default. Right now, it is a real annoyance to have to global every constant that you use in the function. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=8194&edit=1

« previous php.bugs (#30500) next »