summaryrefslogtreecommitdiff
path: root/main/SAPI.h
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 /main/SAPI.h
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 'main/SAPI.h')
-rw-r--r--main/SAPI.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index d5ebcdc62f..7500b3ee20 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -147,6 +147,8 @@ struct _sapi_module_struct {
int (*read_post)(char *buffer, uint count_bytes SLS_DC);
char *(*read_cookies)(SLS_D);
+ void (*register_server_variables)(zval *track_vars_array ELS_DC SLS_DC PLS_DC);
+
void (*default_post_reader)(char *content_type_dup SLS_DC);
};