summaryrefslogtreecommitdiff
path: root/sapi/phttpd/phttpd.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/phttpd/phttpd.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/phttpd/phttpd.c')
-rw-r--r--sapi/phttpd/phttpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/phttpd/phttpd.c b/sapi/phttpd/phttpd.c
index 5906e16faf..62e3edc0c8 100644
--- a/sapi/phttpd/phttpd.c
+++ b/sapi/phttpd/phttpd.c
@@ -179,6 +179,8 @@ static sapi_module_struct sapi_module = {
php_phttpd_sapi_read_post, /* read POST data */
php_phttpd_sapi_read_cookies, /* read Cookies */
+ NULL, /* register server variables */
+
STANDARD_SAPI_MODULE_PROPERTIES
};