php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3865 Create universal globals, esp HTTP_*_VARS
Submitted: 2000-03-18 19:28 UTC Modified: 2000-07-31 22:51 UTC
From: august at bigfoot dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 4 Patch Level 1 OS: FreeBSD
Private report: No CVE-ID: None
 [2000-03-18 19:28 UTC] august at bigfoot dot com
I'd love if it were possible to put variables into the global address space. This would be especially useful for the HTTP_*_VARS series of variables, which are pretty contention free namespace wise.

Could be a compile time option, php.ini option or something else. 

Of course, a more complete solution would be to have a 'universal' keyword which moved variables into a truly global address space, available to all functions. Not sure if this would be really desirable. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-31 22:51 UTC] waldschrott@php.net
It?s here and it?s free. It?s called "the $GLOBALS array" ;)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 04:00:01 2026 UTC