X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.c;h=5d78803154676f52248647338ffb463c88ce82ac;hp=f64731e3e907ea525f95056dc0fc06b648c66b37;hb=1f37d09e4c7f55cf6f2c3c10ea3ec2424a482671;hpb=f6600e3e5a683077874e6bbfda11900e6a7613f3 diff --git a/php_http_client.c b/php_http_client.c index f64731e..5d78803 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -507,7 +507,7 @@ static PHP_METHOD(HttpClient, __construct) php_persistent_handle_factory_t *pf; if ((pf = php_persistent_handle_concede(NULL, driver->client_name, persistent_handle_name, NULL, NULL))) { - 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); } }