projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix test if ext/zlib is not loaded
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index d205ea26567f10a5106f68b054fe21bb0df26d57..88aefb47ae33ec54521a645c3f08d27c467a65ab 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-1544,7
+1544,7
@@
PHP_FUNCTION(http_compress)
{
char *data;
int data_len;
{
char *data;
int data_len;
- long level;
+ long level
= -1
;
RETVAL_NULL();
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)) {
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);
}
}
}
}
}
}