addref to body resource
authorMichael Wallner <mike@php.net>
Mon, 12 Nov 2012 19:29:38 +0000 (19:29 +0000)
committerMichael Wallner <mike@php.net>
Mon, 12 Nov 2012 19:29:38 +0000 (19:29 +0000)
php_http_message_body.c

index cf22e7035d9f89a1d050f1d487202f5492351823..e765a4b93df639762b79322afe976136785047a8 100644 (file)
@@ -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);
        }
 }