X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.c;h=6dcd83e3823222ba63678ca7bd9e3395f5da3315;hp=4197cdf4109492774dffafadf2c7ed2fa1423a9c;hb=7ebb278e7854e8dd7c4fd6c0363531642d135676;hpb=8d0dbf7286d9132be18de64625837afa55409f84 diff --git a/src/php_pqcur.c b/src/php_pqcur.c index 4197cdf..6dcd83e 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)); } @@ -400,7 +400,7 @@ static PHP_METHOD(pqcur, moveAsync) } static zend_function_entry php_pqcur_methods[] = { - PHP_ME(pqcur, __construct, ai_pqcur___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(pqcur, __construct, ai_pqcur___construct, ZEND_ACC_PUBLIC) PHP_ME(pqcur, open, ai_pqcur_open, ZEND_ACC_PUBLIC) PHP_ME(pqcur, openAsync, ai_pqcur_openAsync, ZEND_ACC_PUBLIC) PHP_ME(pqcur, close, ai_pqcur_close, ZEND_ACC_PUBLIC) @@ -433,7 +433,7 @@ PHP_MINIT_FUNCTION(pqcur) php_pqcur_object_handlers.read_property = php_pq_object_read_prop; php_pqcur_object_handlers.write_property = php_pq_object_write_prop; php_pqcur_object_handlers.clone_obj = NULL; - php_pqcur_object_handlers.get_property_ptr_ptr = NULL; + php_pqcur_object_handlers.get_property_ptr_ptr = php_pq_object_get_prop_ptr_null; php_pqcur_object_handlers.get_gc = php_pq_object_get_gc; php_pqcur_object_handlers.get_properties = php_pq_object_properties; php_pqcur_object_handlers.get_debug_info = php_pq_object_debug_info;