X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cache_api.c;h=9b2b8aacfacbdd3c03171affdb8e054b4a5a7784;hp=49843598a9425a03aed447ac7dd7cfe05915540b;hb=6c4e793316be7f98f5400e24f498336db0d07af4;hpb=a347d63a12d0863cf848c2e4ffa891fe827e29bb diff --git a/http_cache_api.c b/http_cache_api.c index 4984359..9b2b8aa 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -33,7 +33,7 @@ #include "php_http_send_api.h" #include "php_http_date_api.h" -#ifdef HAVE_LIBMHASH +#ifdef HTTP_HAVE_MHASH # include #endif @@ -202,9 +202,6 @@ PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len, PHP_HTTP_API void _http_ob_etaghandler(char *output, uint output_len, char **handled_output, uint *handled_output_len, int mode TSRMLS_DC) { - char etag[41] = { 0 }; - unsigned char digest[20]; - if (mode & PHP_OUTPUT_HANDLER_START) { if (HTTP_G(etag).started) { http_error(HE_WARNING, HTTP_E_RUNTIME, "ob_etaghandler can only be used once");