X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqconn.c;fp=src%2Fphp_pqconn.c;h=e753c7c736b8bdcb663237f1ca70a840280c8297;hp=51e126dbd5adaa5cc1f373f92c1a2815926c8344;hb=a842c6b8396837c36332b87f6b8a430bb8fd297c;hpb=83b4777e8aee1a30a29d41971b0f2b8315e6b501 diff --git a/src/php_pqconn.c b/src/php_pqconn.c index 51e126d..e753c7c 100644 --- a/src/php_pqconn.c +++ b/src/php_pqconn.c @@ -684,7 +684,7 @@ static PHP_METHOD(pqconn, __construct) { if (flags & PHP_PQCONN_PERSISTENT) { php_persistent_handle_factory_t *phf = php_persistent_handle_concede(NULL, ZEND_STRL("pq\\Connection"), dsn_str, dsn_len, php_pqconn_wakeup, php_pqconn_retire TSRMLS_CC); - php_resource_factory_init(&obj->intern->factory, php_persistent_handle_get_resource_factory_ops(), phf, (void (*)(void*)) php_persistent_handle_abandon); + php_persistent_handle_resource_factory_init(&obj->intern->factory, phf); } else { php_resource_factory_init(&obj->intern->factory, &php_pqconn_resource_factory_ops, NULL, NULL); }