X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqres.h;h=328d53e34e680563f3f103e19cc6941cf834e2ca;hp=6298aa100b5e04b3a604d87eb341f769f0109869;hb=a06db6d217fc8ba0fd9b8273a9e595477d59afcc;hpb=a5470139f5305341fca92f942852d1ae18b254ea diff --git a/src/php_pqres.h b/src/php_pqres.h index 6298aa1..328d53e 100644 --- a/src/php_pqres.h +++ b/src/php_pqres.h @@ -54,21 +54,14 @@ typedef struct php_pqres_object { php_pqres_t *intern; } php_pqres_object_t; -extern STATUS php_pqres_success(PGresult *res TSRMLS_DC); +extern ZEND_RESULT_CODE php_pqres_success(PGresult *res TSRMLS_DC); extern void php_pqres_init_instance_data(PGresult *res, php_pqconn_object_t *obj, php_pqres_object_t **ptr TSRMLS_DC); extern zval *php_pqres_row_to_zval(PGresult *res, unsigned row, php_pqres_fetch_t fetch_type, zval **data_ptr TSRMLS_DC); extern zval *php_pqres_typed_zval(php_pqres_t *res, char *val, size_t len, Oid typ TSRMLS_DC); +extern php_pqres_fetch_t php_pqres_fetch_type(php_pqres_t *res); #include "php_pq_object.h" #include "php_pqconn_event.h" -#define PHP_PQclear(_r) do { \ - php_pqres_object_t *_o = PQresultInstanceData((_r), php_pqconn_event); \ - if (_o) { \ - php_pq_object_delref(_o TSRMLS_CC); \ - } else { \ - PQclear(_r); \ - } \ -} while(0) extern zend_class_entry *php_pqres_class_entry; extern zend_object_value php_pqres_create_object_ex(zend_class_entry *ce, php_pqres_t *intern, php_pqres_object_t **ptr TSRMLS_DC);