summaryrefslogtreecommitdiff
path: root/sapi/servlet/servlet.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-28 17:24:53 +0000
committerZeev Suraski <zeev@php.net>2000-01-28 17:24:53 +0000
commit9ab35ae39367bcd30037c6bfc73ae0c77c35d872 (patch)
tree0159d87ae935d13e9b82961442d741ce9360b439 /sapi/servlet/servlet.c
parent270eff1dfee55220c009cd1a546901339f657b94 (diff)
downloadphp-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 'sapi/servlet/servlet.c')
-rw-r--r--sapi/servlet/servlet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/servlet/servlet.c b/sapi/servlet/servlet.c
index 0682dc0578..d16e3f8ab1 100644
--- a/sapi/servlet/servlet.c
+++ b/sapi/servlet/servlet.c
@@ -227,6 +227,8 @@ static sapi_module_struct sapi_module = {
sapi_servlet_read_post, /* read POST data */
sapi_servlet_read_cookies, /* read Cookies */
+ NULL, /* register server variables */
+
STANDARD_SAPI_MODULE_PROPERTIES
};