X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_env_response.c;fp=src%2Fphp_http_env_response.c;h=40ef4fee60d2b9171e78eb4fe08d05399f6fd14a;hp=ab959f31ba6d838066c062f27d9a94980bacfab9;hb=10bbc389d50be796cafeea66562a5558f21d2a9f;hpb=462ffb801ee80ed8bb5b571d53105428c83a97b4 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;