X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_env_response.c;h=740685767abb520a46485a649f2407ac12084f00;hp=63246988a5b0ba0ac39588eab26de5d6a2660bad;hb=fb9ddae6fe52e50c21559a8986e2cddcb09e3751;hpb=7214e1aef4efce10bcc509d2a741acef88d28781 diff --git a/src/php_http_env_response.c b/src/php_http_env_response.c index 6324698..7406857 100644 --- a/src/php_http_env_response.c +++ b/src/php_http_env_response.c @@ -346,10 +346,6 @@ static ZEND_RESULT_CODE php_http_env_response_send_head(php_http_env_response_t zval_ptr_dtor(zoption); } - if (ret != SUCCESS) { - return ret; - } - if ((zoption = get_option(options, ZEND_STRL("responseCode"), &zoption_tmp))) { zend_long rc = zval_get_long(zoption); @@ -852,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);