- initialize default compression level
[m6w6/ext-http] / http_functions.c
index d205ea26567f10a5106f68b054fe21bb0df26d57..88aefb47ae33ec54521a645c3f08d27c467a65ab 100644 (file)
@@ -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);
                }
        }
 }