X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=88aefb47ae33ec54521a645c3f08d27c467a65ab;hp=d205ea26567f10a5106f68b054fe21bb0df26d57;hb=6541b0935ad5edc8e45b4a99c5e3f67812489bca;hpb=537d2a421ee75ee8590c4c85e6ec1cd859b9810b diff --git a/http_functions.c b/http_functions.c index d205ea2..88aefb4 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1544,7 +1544,7 @@ PHP_FUNCTION(http_compress) { char *data; int data_len; - long level; + long level = -1; RETVAL_NULL(); @@ -1582,7 +1582,7 @@ PHP_FUNCTION(http_uncompress) size_t decoded_len; if (SUCCESS == http_encoding_uncompress(data, data_len, &decoded, &decoded_len)) { - RETURN_STRINGL(decoded, decoded_len, 0); + RETURN_STRINGL(decoded, (int) decoded_len, 0); } } }