summaryrefslogtreecommitdiff
path: root/sapi/isapi/php4isapi.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-26 16:51:57 +0000
committerSascha Schumann <sas@php.net>1999-11-26 16:51:57 +0000
commit2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54 (patch)
treec47d480cc160fad7842ebee9ee96672e57e54628 /sapi/isapi/php4isapi.c
parentfe48f6ed6aff5572fbb2c093690ecf9b24248b86 (diff)
downloadphp-git-2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54.tar.gz
Convert more source files to use thread-safe functions
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r--sapi/isapi/php4isapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c
index b352c32a89..a72eacdcf0 100644
--- a/sapi/isapi/php4isapi.c
+++ b/sapi/isapi/php4isapi.c
@@ -390,6 +390,7 @@ static void hash_isapi_variables(ELS_D SLS_DC)
char *variable_buf;
DWORD variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
char *variable;
+ char *strtok_buf = NULL;
LPEXTENSION_CONTROL_BLOCK lpECB;
lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context);
@@ -407,7 +408,7 @@ static void hash_isapi_variables(ELS_D SLS_DC)
return;
}
}
- variable = strtok(variable_buf, "\r\n");
+ variable = strtok_r(variable_buf, "\r\n", &strtok_buf);
while (variable) {
char *colon = strchr(variable, ':');
@@ -426,7 +427,7 @@ static void hash_isapi_variables(ELS_D SLS_DC)
zend_hash_add(&EG(symbol_table), variable, strlen(variable)+1, &entry, sizeof(zval *), NULL);
*colon = ':';
}
- variable = strtok(NULL, "\r\n");
+ variable = strtok_r(NULL, "\r\n", &strtok_buf);
}
if (variable_buf!=static_variable_buf) {
efree(variable_buf);