summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/pi3web/pi3web_sapi.c3
-rw-r--r--sapi/thttpd/thttpd.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c
index 99f48d2be1..cba147a7c2 100644
--- a/sapi/pi3web/pi3web_sapi.c
+++ b/sapi/pi3web/pi3web_sapi.c
@@ -180,7 +180,6 @@ static int sapi_pi3web_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
char *combined_headers, *combined_headers_ptr;
LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context);
sapi_header_struct default_content_type;
- TSRMLS_FETCH();
if ( !IWasLoaded ) return SAPI_HEADER_SENT_SUCCESSFULLY;
@@ -320,7 +319,7 @@ static void init_request_info(sapi_globals_struct *sapi_globals, LPCONTROL_BLOCK
SG(sapi_headers).http_response_code = 200;
}
-static void hash_pi3web_variables(TSRMLS_D TSRMLS_DC)
+static void hash_pi3web_variables(TSRMLS_D)
{
char static_variable_buf[PI3WEB_SERVER_VAR_BUF_SIZE];
char *variable_buf;
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index 92c34b1a17..969836ceec 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -260,7 +260,7 @@ static void thttpd_module_main(TSRMLS_D)
php_request_shutdown(NULL);
}
-static void thttpd_request_ctor(TSRMLS_D TSRMLS_DC)
+static void thttpd_request_ctor(TSRMLS_D)
{
int offset;
smart_str s = {0};
@@ -295,7 +295,7 @@ static void thttpd_request_ctor(TSRMLS_D TSRMLS_DC)
}
}
-static void thttpd_request_dtor(TSRMLS_D TSRMLS_DC)
+static void thttpd_request_dtor(TSRMLS_D)
{
if (SG(request_info).query_string)
free(SG(request_info).query_string);