compat with master
[m6w6/ext-http] / src / php_http_env_response.c
index 3a5a8e8905539d129335dbe731b29af08b464b7d..740685767abb520a46485a649f2407ac12084f00 100644 (file)
@@ -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);