Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion session_pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ static PGconn *php_ps_pgsql_connect(const int id TSRMLS_DC)
PQreset(PS_PGSQL(pgsql_link)[id]); /* reset connection. database server may be rebooted */
if (PQstatus(PS_PGSQL(pgsql_link)[id]) == CONNECTION_BAD) {
/* seems it's really dead */
php_error(E_WARNING, "session pgsql: PostgreSQL server connection is broken or bad connection string (%s): '%s'", PS_PGSQL(connstr)[id], PQerrorMessage(PS_PGSQL(pgsql_link)[id]));
PQfinish(PS_PGSQL(pgsql_link)[id]);
PS_PGSQL(pgsql_link)[id] = NULL;
php_error(E_WARNING, "session pgsql: PostgreSQL server connection is broken or bad connection string (%s)", PS_PGSQL(connstr)[id]);
return NULL;
}
}
Expand Down