diff --git a/language/variables.xml b/language/variables.xml index cefca9f2e7..9758a7d0a7 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -1,5 +1,5 @@ - + Variables @@ -121,6 +121,28 @@ $bar = &test(); // Invalid. Predefined variables. + + + In PHP 4.1.0 and later, the default set of predefined variables + which are available in the global scope has changed. Individual + input and server variables are by defaultno + longer placed directly into the global scope; rather, they are + placed into the following superglobal + arrays. + + + You can still force the old behaviour by setting register_globals to 'On' in + your php.ini file. + + + For more information and background on this change, please see + the PHP 4.1.0 Release + Announcement. + + + From version 4.1.0 onward, PHP provides a set of predefined arrays containing variables from the web server (if applicable), the @@ -134,8 +156,18 @@ $bar = &test(); // Invalid. Predefined variables. - + PHP Superglobals + + $GLOBALS + + + Contains a reference to every variable which is currently + available within the global scope of the script. The keys of + this array are the names of the global variables. + + + $_SERVER