summaryrefslogtreecommitdiff
path: root/sapi/isapi/php4isapi.c
diff options
context:
space:
mode:
authorBen Mansell <joosters@php.net>2001-02-16 16:01:34 +0000
committerBen Mansell <joosters@php.net>2001-02-16 16:01:34 +0000
commitf49d4de5991499e6b427aef23e9a082b85e5b404 (patch)
tree57eaf919ecd9c6913a78fc2850999040021da4ed /sapi/isapi/php4isapi.c
parent2c3b7385bf88c0ae9ad3647a2ad6d257a39a94ad (diff)
downloadphp-git-f49d4de5991499e6b427aef23e9a082b85e5b404.tar.gz
Fixed non-threadsafe code: 'isapi_special_server_variables' was a static
buffer, and not allocated per-connection. Bad bad bad!
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r--sapi/isapi/php4isapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c
index ad314d9a4c..2feb67a758 100644
--- a/sapi/isapi/php4isapi.c
+++ b/sapi/isapi/php4isapi.c
@@ -74,8 +74,6 @@ static char *isapi_special_server_variable_names[] = {
#define SPECIAL_VAR_HTTPS 1
#define SPECIAL_VAR_PHP_SELF 2
-static char *isapi_special_server_variables[NUM_SPECIAL_VARS];
-
static char *isapi_server_variable_names[] = {
"AUTH_PASSWORD",
"AUTH_TYPE",
@@ -426,6 +424,7 @@ static void sapi_isapi_register_server_variables(zval *track_vars_array ELS_DC S
DWORD variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
char *variable;
char *strtok_buf = NULL;
+ char *isapi_special_server_variables[NUM_SPECIAL_VARS];
LPEXTENSION_CONTROL_BLOCK lpECB;
lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context);