X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=e9cd9f77e2ea51511b21d76d896608b6322a1ab7;hp=7612013c070aca40fb1c63f6c5bc14b28b547ea6;hb=3f8d6ea256f520d439cebc37c46bb93c30b2660e;hpb=902d195a198f4976c8ff081a95cdd3e315c14f5f diff --git a/http_functions.c b/http_functions.c index 7612013..e9cd9f7 100644 --- a/http_functions.c +++ b/http_functions.c @@ -674,7 +674,7 @@ PHP_FUNCTION(http_get_request_body) NO_ARGS; if (SUCCESS == http_get_request_body(&body, &length)) { - RETURN_STRING(body, (int) length, 0); + RETURN_STRINGL(body, (int) length, 0); } else { RETURN_NULL(); } @@ -689,7 +689,7 @@ PHP_FUNCTION(http_match_request_header) { char *header, *value; int header_len, value_len; - zend_bool match_case = 0, result = 0; + zend_bool match_case = 0; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", &header, &header_len, &value, &value_len, &match_case)) { RETURN_FALSE; @@ -737,7 +737,6 @@ PHP_FUNCTION(http_match_request_header) * - timeout: int, seconds the request may take * - connecttimeout: int, seconds the connect may take * - onprogress: mixed, progress callback - * - ondebug: mixed, debug callback * * * The optional third parameter will be filled with some additional information