X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.c;h=00ad2b83d63c09c9cb761543b65ad74744111b23;hp=1cb5d584fc0dbf68a36d9a6857f615825c3474cd;hb=bf2e263195f9909b017fcf93d96cfc83a97ad2e3;hpb=9255d2d54bca41644cf3588e4e4259a1855b58d7 diff --git a/src/php_pqcur.c b/src/php_pqcur.c index 1cb5d58..00ad2b8 100644 --- a/src/php_pqcur.c +++ b/src/php_pqcur.c @@ -82,7 +82,7 @@ static void cur_fetch_or_move(INTERNAL_FUNCTION_PARAMETERS, const char *action, } else if (obj->intern->conn->intern->unbuffered && !PQsetSingleRowMode(obj->intern->conn->intern->conn)) { throw_exce(EX_RUNTIME TSRMLS_CC, "Failed to enable unbuffered mode (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn)); } else { - php_pq_callback_recurse(&obj->intern->conn->intern->onevent, &resolver); + php_pq_callback_recurse(&obj->intern->conn->intern->onevent, &resolver TSRMLS_CC); obj->intern->conn->intern->poller = PQconsumeInput; } } else { @@ -176,9 +176,9 @@ static PHP_METHOD(pqcur, open) php_pqcur_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); if (!obj->intern) { - throw_exce(EX_UNINITIALIZED, "pq\\Cursor not initialized"); + throw_exce(EX_UNINITIALIZED TSRMLS_CC, "pq\\Cursor not initialized"); } else if (!obj->intern->open) { - if (SUCCESS == php_pqconn_declare(NULL, obj->intern->conn, obj->intern->decl)) { + if (SUCCESS == php_pqconn_declare(NULL, obj->intern->conn, obj->intern->decl TSRMLS_CC)) { obj->intern->open = 1; } } @@ -200,7 +200,7 @@ static PHP_METHOD(pqcur, close) php_pqcur_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); if (!obj->intern) { - throw_exce(EX_UNINITIALIZED, "pq\\Cursor not initialized"); + throw_exce(EX_UNINITIALIZED TSRMLS_CC, "pq\\Cursor not initialized"); } else { cur_close(obj TSRMLS_CC); }