From: Ben Mansell Date: Fri, 16 Feb 2001 16:01:34 +0000 (+0000) Subject: Fixed non-threadsafe code: 'isapi_special_server_variables' was a static X-Git-Tag: php-4.0.5RC1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f49d4de5991499e6b427aef23e9a082b85e5b404;p=php Fixed non-threadsafe code: 'isapi_special_server_variables' was a static buffer, and not allocated per-connection. Bad bad bad! --- 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);