From: Michael Wallner Date: Thu, 19 Feb 2015 19:33:35 +0000 (+0100) Subject: missing backport from phpng branch X-Git-Tag: RELEASE_2_3_0~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a7d0b03fc81daac03ac56f7506d489540ef12921;p=m6w6%2Fext-http missing backport from phpng branch --- diff --git a/php_http_env_response.c b/php_http_env_response.c index 2f2f161..0bcc21d 100644 --- a/php_http_env_response.c +++ b/php_http_env_response.c @@ -926,7 +926,7 @@ static void php_http_env_response_stream_dtor(php_http_env_response_t *r) TSRMLS_FETCH_FROM_CTX(r->ts); if (ctx->chunked_filter) { - php_stream_filter_free(ctx->chunked_filter TSRMLS_CC); + ctx->chunked_filter = php_stream_filter_remove(ctx->chunked_filter, 1 TSRMLS_CC); } zend_hash_destroy(&ctx->header); zend_list_delete(ctx->stream->rsrc_id);