ID: 8194 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] The same is true for me, I really like somthing like that. ------------------------------------------------------------------------ [2000-12-11 13:51:16] [EMAIL PROTECTED] 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