From: Michael Wallner Date: Tue, 2 Aug 2005 17:20:36 +0000 (+0000) Subject: - fix PHP4 build X-Git-Tag: RELEASE_0_12_0~49 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=620dcb8928ce5e81baa42f794687e17c0b6022ee;p=m6w6%2Fext-http - fix PHP4 build - nuke unused variables --- diff --git a/http_functions.c b/http_functions.c index ee8fba4..3abe738 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1254,7 +1254,6 @@ PHP_FUNCTION(http_build_query) PHP_FUNCTION(http_test) { - RETURN_BOOL(HTTP_G(only_exceptions)); } /* diff --git a/http_send_api.c b/http_send_api.c index 59b67d4..e832c38 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -221,9 +221,6 @@ PHP_HTTP_API STATUS _http_send_etag(const char *etag, size_t etag_len TSRMLS_DC) /* {{{ STATUS http_send_content_type(char *, size_t) */ PHP_HTTP_API STATUS _http_send_content_type(const char *content_type, size_t ct_len TSRMLS_DC) { - STATUS status; - char *ct_header; - if (!strchr(content_type, '/')) { http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Content-Type '%s' doesn't seem to consist of a primary and a secondary part", content_type); return FAILURE;