projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
reset the client when destructing;
[m6w6/ext-http]
/
php_http_client.c
diff --git
a/php_http_client.c
b/php_http_client.c
index 1f4e09a4dc4c10268894c6129564d17e740af87f..2306b040a1c5361b39e72308165944c5c455942f 100644
(file)
--- a/
php_http_client.c
+++ b/
php_http_client.c
@@
-199,13
+199,12
@@
PHP_HTTP_API php_http_client_t *php_http_client_copy(php_http_client_t *from, ph
PHP_HTTP_API void php_http_client_dtor(php_http_client_t *h)
{
+ php_http_client_reset(h);
+
if (h->ops->dtor) {
h->ops->dtor(h);
}
- zend_llist_clean(&h->requests);
- zend_llist_clean(&h->responses);
-
php_resource_factory_free(&h->rf);
}