projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: fix libbrotli check
[m6w6/ext-http]
/
src
/
php_http_encoding.c
diff --git
a/src/php_http_encoding.c
b/src/php_http_encoding.c
index 4e25de30a73a160cb6864908b94744c6c180bdc3..2e3007b7ff4940fba218946101e6751a110ee3f8 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;
};
@@
-477,9
+477,9
@@
php_http_encoding_stream_object_t *php_http_encoding_stream_object_new_ex(zend_c
return o;
}
return o;
}
-zend_object *php_http_encoding_stream_object_clone(z
val
*object)
+zend_object *php_http_encoding_stream_object_clone(z
end_object
*object)
{
{
- php_http_encoding_stream_object_t *new_obj, *old_obj = PHP_HTTP_OBJ(
NULL, object
);
+ php_http_encoding_stream_object_t *new_obj, *old_obj = PHP_HTTP_OBJ(
object, NULL
);
php_http_encoding_stream_t *cpy = php_http_encoding_stream_copy(old_obj->stream, NULL);
if (!cpy) {
php_http_encoding_stream_t *cpy = php_http_encoding_stream_copy(old_obj->stream, NULL);
if (!cpy) {