Bug #12669: Utterly Global Variables - What Zeev was talkin about

From: Date: Thu, 09 Aug 2001 01:16:46 +0000
Subject: Bug #12669: Utterly Global Variables - What Zeev was talkin about
Groups: php.dev 
Request: Send a blank email to php-dev+get-62670@lists.php.net to get a copy of this message
From: btanner@home.com Operating system: All PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: Utterly Global Variables - What Zeev was talkin about "The new variables are auto-globals - they're available in all function contexts" - Zeev How hard would it be to allow a construct so that a developer could indicate that one or more variables was available in all scope. I have a big "Enviroment" class that does everything from data processing, security, access control, page rendering, etc, etc, etc. Its a huge pain to pass around a handle to my "$Env" variable all the time. If the access control list needs to check something about the user, or the page needs to know which template it should be rendering, I need to traverse my heirarchy via this handle. I'm tired of having references to it stored everywhere ;) Any chance of getting this? -- Edit bug report at: http://bugs.php.net/?id=12669&edit=1

« previous php.dev (#62670) next »