X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_env_response.c;h=740685767abb520a46485a649f2407ac12084f00;hp=3a5a8e8905539d129335dbe731b29af08b464b7d;hb=fb9ddae6fe52e50c21559a8986e2cddcb09e3751;hpb=a25866b2177031ae8f5142db8a45fd58dad4e161 diff --git a/src/php_http_env_response.c b/src/php_http_env_response.c index 3a5a8e8..7406857 100644 --- a/src/php_http_env_response.c +++ b/src/php_http_env_response.c @@ -848,7 +848,7 @@ static ZEND_RESULT_CODE php_http_env_response_stream_init(php_http_env_response_ ctx = ecalloc(1, sizeof(*ctx)); ctx->stream = init_arg; - ++GC_REFCOUNT(ctx->stream->res); + GC_ADDREF(ctx->stream->res); ZEND_INIT_SYMTABLE(&ctx->header); php_http_version_init(&ctx->version, 1, 1); php_stream_set_option(ctx->stream, PHP_STREAM_OPTION_WRITE_BUFFER, PHP_STREAM_BUFFER_FULL, &buffer_size);