summary |
shortlog |
log |
commit | commitdiff |
tree |
github
raw |
patch |
inline | side by side (from parent 1:
0d334d5)
this ensures any attached requests will be
dequeued and in case of using persistent
handles can be property re-used
PHP_HTTP_API void php_http_client_dtor(php_http_client_t *h)
{
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);
}
if (h->ops->dtor) {
h->ops->dtor(h);
}
- zend_llist_clean(&h->requests);
- zend_llist_clean(&h->responses);
-
php_resource_factory_free(&h->rf);
}
php_resource_factory_free(&h->rf);
}