X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_requestpool_object.c;h=e55961784c59172a716f3f6c1eccbc62d2786952;hp=a683b05e2bb0ee83ffbc3247a1028df33575b5cf;hb=2269e8e11a6837fc165ae85406ea6db84c1995cc;hpb=b272c1e03de58ff0c01f78421b824c7f45d43959 diff --git a/http_requestpool_object.c b/http_requestpool_object.c index a683b05..e559617 100644 --- a/http_requestpool_object.c +++ b/http_requestpool_object.c @@ -46,6 +46,7 @@ zend_function_entry http_requestpool_object_fe[] = { PHP_ME(HttpRequestPool, attach, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequestPool, detach, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequestPool, send, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequestPool, reset, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; @@ -95,17 +96,6 @@ void _http_requestpool_object_free(zend_object *object TSRMLS_DC) efree(o); } -static void http_requestpool_object_ondestructhandler(zval **request, http_request_pool *pool TSRMLS_DC) -{ - http_request_pool_detach(pool, *request); -} - -void _http_requestpool_object_ondestruct(http_request_pool *pool TSRMLS_DC) -{ - zend_llist_apply_with_argument(&pool->handles, (llist_apply_with_arg_func_t) http_requestpool_object_ondestructhandler, pool TSRMLS_CC); -} - - #endif /* HTTP_HAVE_CURL */ #endif /* ZEND_ENGINE_2 */