From: Michael Wallner Date: Mon, 12 Nov 2012 19:29:38 +0000 (+0000) Subject: addref to body resource X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~100 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c5acc26cedb0caa61c7c38422ebb9d7e3aca39e7;p=m6w6%2Fext-http addref to body resource --- diff --git a/php_http_message_body.c b/php_http_message_body.c index cf22e70..e765a4b 100644 --- a/php_http_message_body.c +++ b/php_http_message_body.c @@ -751,6 +751,7 @@ PHP_METHOD(HttpMessageBody, getResource) if (SUCCESS == zend_parse_parameters_none()) { php_http_message_body_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); + zend_list_addref(obj->body->stream_id); RETVAL_RESOURCE(obj->body->stream_id); } }