- fix PHP4 build
authorMichael Wallner <mike@php.net>
Tue, 2 Aug 2005 17:20:36 +0000 (17:20 +0000)
committerMichael Wallner <mike@php.net>
Tue, 2 Aug 2005 17:20:36 +0000 (17:20 +0000)
- nuke unused variables

http_functions.c
http_send_api.c

index ee8fba4e987df6ff8b0664a83dfa7095b3012a4f..3abe73840a43545e353d9a87719bade4e750c93a 100644 (file)
@@ -1254,7 +1254,6 @@ PHP_FUNCTION(http_build_query)
 
 PHP_FUNCTION(http_test)
 {
-       RETURN_BOOL(HTTP_G(only_exceptions));
 }
 
 /*
index 59b67d48155d6a26ec22bc941bf965e2f9e68c43..e832c38165f86b77e09e8aeed0a773fdb3e9db94 100644 (file)
@@ -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;