Formalize pdo_dbh_check_liveness_func() return type to zend_result

This commit is contained in:
George Peter Banyard 2020-12-23 01:49:56 +01:00
parent ca5fcb83bf
commit 6728c1bd72
4 changed files with 4 additions and 4 deletions

View file

@ -488,7 +488,7 @@ static int pdo_pgsql_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_
}
/* {{{ */
static int pdo_pgsql_check_liveness(pdo_dbh_t *dbh)
static zend_result pdo_pgsql_check_liveness(pdo_dbh_t *dbh)
{
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
if (!PQconsumeInput(H->server) || PQstatus(H->server) == CONNECTION_BAD) {