X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_filter_api.c;h=19260ee860e2deaa9e65fd93d301ffc408a5b27f;hp=8d138b9c748e214807cd15dd13abeeb5716cd641;hb=e37040ebf8a470c77c7ae3498ee582ca20db259c;hpb=3d32981b334c85d8f848488b77cb29eea6b7b544 diff --git a/http_filter_api.c b/http_filter_api.c index 8d138b9..19260ee 100644 --- a/http_filter_api.c +++ b/http_filter_api.c @@ -477,7 +477,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int } else if (!strcasecmp(name, "http.inflate")) { - int flags = HTTP_ENCODING_STREAM_FLUSH_SYNC | (p ? HTTP_ENCODING_STREAM_PERSISTENT : 0); + int flags = p ? HTTP_ENCODING_STREAM_PERSISTENT : 0; HTTP_FILTER_BUFFER(inflate) *b = NULL; if ((b = http_encoding_inflate_stream_init(NULL, flags))) { @@ -488,7 +488,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int } else if (!strcasecmp(name, "http.deflate")) { - int flags = HTTP_ENCODING_STREAM_FLUSH_SYNC | (p ? HTTP_ENCODING_STREAM_PERSISTENT : 0); + int flags = p ? HTTP_ENCODING_STREAM_PERSISTENT : 0; HTTP_FILTER_BUFFER(deflate) *b = NULL; if (params) { @@ -504,7 +504,7 @@ static php_stream_filter *http_filter_create(const char *name, zval *params, int zval *orig = *tmp; convert_to_long_ex(tmp); - flags |= (Z_LVAL_PP(tmp) & 0x00ffffff); + flags |= (Z_LVAL_PP(tmp) & 0x0fffffff); if (orig != *tmp) zval_ptr_dtor(tmp); } }