X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_env_response.c;h=40ef4fee60d2b9171e78eb4fe08d05399f6fd14a;hb=9a02b1a9ef8dc62a241148405be8058e0df4250e;hp=ab959f31ba6d838066c062f27d9a94980bacfab9;hpb=13662c61792685435496cd25c95ee1c1950cd9d7;p=m6w6%2Fext-http diff --git a/src/php_http_env_response.c b/src/php_http_env_response.c index ab959f3..40ef4fe 100644 --- a/src/php_http_env_response.c +++ b/src/php_http_env_response.c @@ -938,7 +938,9 @@ static ZEND_RESULT_CODE php_http_env_response_stream_start(php_http_env_response if (ctx->chunked) { ctx->chunked_filter = php_stream_filter_create("http.chunked_encode", NULL, 0); - php_stream_filter_append(&ctx->stream->writefilters, ctx->chunked_filter); + if (ctx->chunked_filter) { + php_stream_filter_append(&ctx->stream->writefilters, ctx->chunked_filter); + } } return ctx->started ? SUCCESS : FAILURE;