X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.c;h=682b78aa01d8828bfd8a7823e46692cddc455907;hp=4197cdf4109492774dffafadf2c7ed2fa1423a9c;hb=c753ebfed3a4b21409cfa46212fd2c55227c809f;hpb=8d0dbf7286d9132be18de64625837afa55409f84;ds=sidebyside diff --git a/src/php_pqcur.c b/src/php_pqcur.c index 4197cdf..682b78a 100644 --- a/src/php_pqcur.c +++ b/src/php_pqcur.c @@ -48,7 +48,7 @@ static void cur_close(php_pqcur_object_t *obj, zend_bool async, zend_bool silent } } else { if ((res = php_pq_exec(obj->intern->conn->intern->conn, smart_str_v(&cmd)))) { - php_pq_clear_res(res); + php_pqres_clear(res); } else if (!silent) { throw_exce(EX_RUNTIME, "Failed to close cursor (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn)); }