X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_pool.c;h=4930122b5517ba0e2088103d5d2f533b3079c708;hp=e06bcb0e16df3387da7ff4dec81a74efdcd9a04d;hb=aacbe6aa75ca07853bf88d5b3647f67f107d1af7;hpb=4743c5114bcdcf8d478e140beb63fecfeccd01a4 diff --git a/php_http_request_pool.c b/php_http_request_pool.c index e06bcb0..4930122 100644 --- a/php_http_request_pool.c +++ b/php_http_request_pool.c @@ -1,8 +1,16 @@ - -#include "php_http.h" - -#include -#include +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#include "php_http_api.h" PHP_HTTP_API php_http_request_pool_t *php_http_request_pool_init(php_http_request_pool_t *h, php_http_request_pool_ops_t *ops, php_http_resource_factory_t *rf, void *init_arg TSRMLS_DC) { @@ -52,6 +60,8 @@ PHP_HTTP_API void php_http_request_pool_dtor(php_http_request_pool_t *h) if (h->persistent_handle_id) { zval_ptr_dtor(&h->persistent_handle_id); } + + php_http_resource_factory_free(&h->rf); } PHP_HTTP_API void php_http_request_pool_free(php_http_request_pool_t **h) { @@ -564,3 +574,13 @@ PHP_MINIT_FUNCTION(http_request_pool) return SUCCESS; } + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ +