X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=7eee1007ebf3e42300482978b81d568fea6f7c69;hp=7612013c070aca40fb1c63f6c5bc14b28b547ea6;hb=3e696a1c24d6ffc382567876eafa2a5bd9b8afa7;hpb=902d195a198f4976c8ff081a95cdd3e315c14f5f diff --git a/http_functions.c b/http_functions.c index 7612013..7eee100 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;