projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
gitignore: *.loT
[m6w6/ext-http]
/
src
/
php_http_encoding.c
diff --git
a/src/php_http_encoding.c
b/src/php_http_encoding.c
index c3e9a3a5f618a4f119247fcfd0ce0fbdb0608a94..3e57e2932e53233c99fa7fd408b724c4604a4f31 100644
(file)
--- a/
src/php_http_encoding.c
+++ b/
src/php_http_encoding.c
@@
-36,7
+36,7
@@
const char *php_http_encoding_dechunk(const char *encoded, size_t encoded_len, c
*decoded = ecalloc(1, encoded_len + 1);
while ((encoded + encoded_len - e_ptr) > 0) {
*decoded = ecalloc(1, encoded_len + 1);
while ((encoded + encoded_len - e_ptr) > 0) {
- ulong chunk_len = 0, rest;
+ u
nsigned
long chunk_len = 0, rest;
chunk_len = strtoul(e_ptr, &n_ptr, 16);
chunk_len = strtoul(e_ptr, &n_ptr, 16);
@@
-237,7
+237,7
@@
void php_http_encoding_stream_free(php_http_encoding_stream_t **s)
struct dechunk_ctx {
php_http_buffer_t buffer;
struct dechunk_ctx {
php_http_buffer_t buffer;
- ulong hexlen;
+ u
nsigned
long hexlen;
unsigned zeroed:1;
};
unsigned zeroed:1;
};
@@
-528,7
+528,7
@@
static PHP_METHOD(HttpEncodingStream, __construct)
obj = PHP_HTTP_OBJ(NULL, getThis());
if (UNEXPECTED(obj->stream)) {
obj = PHP_HTTP_OBJ(NULL, getThis());
if (UNEXPECTED(obj->stream)) {
- php_http_throw(bad_method_call, "http\\Encoding\\Stream cannot be initialized twice"
, NULL
);
+ php_http_throw(bad_method_call, "http\\Encoding\\Stream cannot be initialized twice");
return;
}
return;
}