X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=f42fccba9b28c02eadb76488aed0f8607194ab7e;hp=2935626ecfb4eff1483540cd63d4fbc5dbc310e5;hb=7038c951485d1b2afa79c9a84b8dcdcb57c9bc54;hpb=a9bf30098351bc77da5171ac420f4b55d8d07647 diff --git a/http_functions.c b/http_functions.c index 2935626..f42fccb 100644 --- a/http_functions.c +++ b/http_functions.c @@ -15,9 +15,6 @@ /* $Id$ */ -#define _WINSOCKAPI_ -#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS - #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -376,7 +373,7 @@ PHP_FUNCTION(http_cache_last_modified) */ PHP_FUNCTION(http_cache_etag) { - char *etag; + char *etag = NULL; int etag_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &etag, &etag_len) != SUCCESS) { @@ -608,7 +605,7 @@ PHP_FUNCTION(http_split_response) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not parse HTTP response"); RETURN_FALSE; } - + array_init(return_value); add_index_zval(return_value, 0, zheaders); add_index_zval(return_value, 1, zbody);