projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
628bdcb
)
addref to body resource
author
Michael Wallner
<mike@php.net>
Mon, 12 Nov 2012 19:29:38 +0000
(19:29 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 12 Nov 2012 19:29:38 +0000
(19:29 +0000)
php_http_message_body.c
patch
|
blob
|
history
diff --git
a/php_http_message_body.c
b/php_http_message_body.c
index cf22e7035d9f89a1d050f1d487202f5492351823..e765a4b93df639762b79322afe976136785047a8 100644
(file)
--- 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);
}
}