From: Michael Wallner Date: Mon, 14 Feb 2005 10:29:44 +0000 (+0000) Subject: * keep winsock crap outta door X-Git-Tag: RELEASE_0_4_0~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6c14707f37092c44b2a0b1948e89cfa2650d6658;p=m6w6%2Fext-http * keep winsock crap outta door --- diff --git a/http.c b/http.c index 677cf9d..0132ff9 100644 --- a/http.c +++ b/http.c @@ -15,6 +15,7 @@ /* $Id$ */ +#define _WINSOCKAPI_ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS #ifdef HAVE_CONFIG_H @@ -445,7 +446,7 @@ PHP_FUNCTION(http_cache_etag) if (etag_len) { RETURN_SUCCESS(http_send_etag(etag, etag_len)); } - + /* if no etag is given and we didn't already * start ob_etaghandler -- start it */ @@ -1135,12 +1136,12 @@ PHP_RSHUTDOWN_FUNCTION(http) { HTTP_G(etag_started) = 0; HTTP_G(lmod) = 0; - + if (HTTP_G(etag)) { efree(HTTP_G(etag)); HTTP_G(etag) = NULL; } - + if (HTTP_G(ctype)) { efree(HTTP_G(ctype)); HTTP_G(ctype) = NULL; diff --git a/http_api.c b/http_api.c index c04b2e8..c5f25cf 100644 --- a/http_api.c +++ b/http_api.c @@ -15,6 +15,7 @@ /* $Id$ */ +#define _WINSOCKAPI_ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS #ifdef HAVE_CONFIG_H