diff options
author | Daniel Beulshausen <dbeu@php.net> | 2001-08-14 17:31:00 +0000 |
---|---|---|
committer | Daniel Beulshausen <dbeu@php.net> | 2001-08-14 17:31:00 +0000 |
commit | 388dfa04831882b4977fc674798bc87efe4ff9bc (patch) | |
tree | 87fcd7a43c6d0d52cba79e0eed7b2476008b5481 /sapi/pi3web | |
parent | 21cac086e479341d3d15b7f4ce53694352aebd09 (diff) | |
download | php-git-388dfa04831882b4977fc674798bc87efe4ff9bc.tar.gz |
TSRMLS fixes
Diffstat (limited to 'sapi/pi3web')
-rw-r--r-- | sapi/pi3web/pi3web_sapi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index 12a0178b61..a1bb15f527 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -71,7 +71,6 @@ static void php_info_pi3web(ZEND_MODULE_INFO_FUNC_ARGS) char variable_buf[PI3WEB_SERVER_VAR_BUF_SIZE]; DWORD variable_len; LPCONTROL_BLOCK lpCB; - TSRMLS_FETCH(); lpCB = (LPCONTROL_BLOCK) SG(server_context); @@ -193,7 +192,7 @@ static int sapi_pi3web_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) combined_headers = (char *) emalloc(total_length+1); combined_headers_ptr = combined_headers; if (SG(sapi_headers).send_default_content_type) { - concat_header(&default_content_type, (void *) &combined_headers_ptr); + concat_header(&default_content_type, (void *) &combined_headers_ptr TSRMLS_CC); sapi_free_header(&default_content_type); /* we no longer need it */ } zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) concat_header, (void *) &combined_headers_ptr TSRMLS_CC); @@ -301,7 +300,7 @@ static sapi_module_struct pi3web_sapi_module = { STANDARD_SAPI_MODULE_PROPERTIES }; -static void init_request_info(sapi_globals_struct *sapi_globals, LPCONTROL_BLOCK lpCB) +static void init_request_info(LPCONTROL_BLOCK lpCB TSRMLS_DC) { char *path_end = strrchr(lpCB->lpszFileName, PHP_DIR_SEPARATOR); if ( path_end ) *path_end = PHP_DIR_SEPARATOR; @@ -384,7 +383,7 @@ DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) file_handle.opened_path = NULL; CG(extended_info) = 0; - init_request_info(sapi_globals, lpCB); + init_request_info(lpCB TSRMLS_CC); php_request_startup(TSRMLS_C); hash_pi3web_variables(TSRMLS_C); |