X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;h=b91fe4837467b829bd15d38c7e463ffb7b2ac9f0;hp=a9b8c7ffc6fe8fa3103e96d727b2301c57104919;hb=7493ad081ec06081cb8ca0f804d98a263f93ffbc;hpb=03045a17d712ce52e0a55c7d8f2cc30b48b3a645 diff --git a/php_http_client_curl.c b/php_http_client_curl.c index a9b8c7f..b91fe48 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -2136,7 +2136,7 @@ static php_resource_factory_t *create_rf(php_http_client_t *h, php_http_client_e } /* only if the client itself is setup for persistence */ - if (h->rf->dtor == (void (*)(void*)) php_persistent_handle_abandon) { + if (php_resource_factory_is_persistent(h->rf)) { zend_string *id; char *id_str = NULL; size_t id_len; @@ -2158,7 +2158,7 @@ static php_resource_factory_t *create_rf(php_http_client_t *h, php_http_client_e } if (pf) { - rf = php_resource_factory_init(NULL, php_persistent_handle_get_resource_factory_ops(), pf, (void (*)(void*)) php_persistent_handle_abandon); + rf = php_persistent_handle_resource_factory_init(NULL, pf); } else { rf = php_resource_factory_init(NULL, &php_http_curle_resource_factory_ops, NULL, NULL); }