diff options
| author | Zeev Suraski <zeev@php.net> | 2000-01-28 17:24:53 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-01-28 17:24:53 +0000 |
| commit | 9ab35ae39367bcd30037c6bfc73ae0c77c35d872 (patch) | |
| tree | 0159d87ae935d13e9b82961442d741ce9360b439 /php.ini-dist | |
| parent | 270eff1dfee55220c009cd1a546901339f657b94 (diff) | |
| download | php-git-9ab35ae39367bcd30037c6bfc73ae0c77c35d872.tar.gz | |
Tried to centralize global variable registration as much as possible:
- Added $HTTP_ENV_VARS[] and $HTTP_SERVER_VARS[] support, which similarly
to $HTTP_GET_VARS[], contain environment and server variables. Setting
register_globals to Off will now also prevent registration of the
environment and server variables into the global scope (Zeev)
- Renamed gpc_globals to register_globals (Zeev)
- Introduced variables_order that deprecates gpc_order, and allows control
over the server and environment variables, in addition to GET/POST/Cookies
(Zeev)
Diffstat (limited to 'php.ini-dist')
| -rw-r--r-- | php.ini-dist | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/php.ini-dist b/php.ini-dist index d3d4aae294..4714a1bb91 100644 --- a/php.ini-dist +++ b/php.ini-dist @@ -135,16 +135,20 @@ warn_plus_overloading = Off ; warn if the + operator is used with strings ;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;; -gpc_order = "GPC" ; Order of evaluation of GET/POST/Cookie data. Later values override - ; earlier values (e.g., by default, POST variables override GET variables, - ; and Cookie variables override both POST and GET variables). -gpc_globals = On ; Whether or not to define GET/POST/Cookie variables in the global - ; scope. You may want to turn this off if you don't want +variables_order = "EGPCB" ; This directive describes the order in which PHP registers + ; GET, POST, Cookie, Environment and Built-in variables (G, P, + ; C, E & B respectively, often referred to as EGPCB or GPC). + ; Registration is done from left to right, newer values override + ; older values. +register_globals = On ; Whether or not to register the EGPCB variables as global + ; variables. You may want to turn this off if you don't want ; to clutter your scripts' global scope with user data. This makes ; most sense when coupled with track_vars - in which case you can - ; access all of the GPC variables through the $HTTP_GET_VARS[], - ; $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] variables. -track_vars = On ; enable $HTTP_GET_VARS[], $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] arrays + ; access all of the GPC variables through the $HTTP_*_VARS[], + ; variables. +track_vars = On ; enable the $HTTP_*_VARS[] arrays, where * is one of + ; ENV, POST, GET, COOKIE or SERVER. +gpc_order = "GPC" ; This directive is deprecated. Use variables_order instead. ; Magic quotes magic_quotes_gpc = On ; magic quotes for incoming GET/POST/Cookie data |
