Skip to content

Commit 630d766

Browse files
committed
Fix GH-12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given.
1 parent f35a22a commit 630d766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ PHP_FUNCTION(pg_untrace)
22012201
PGconn *pgsql;
22022202
pgsql_link_handle *link;
22032203

2204-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &pgsql_link) == FAILURE) {
2204+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pgsql_link, pgsql_link_ce) == FAILURE) {
22052205
RETURN_THROWS();
22062206
}
22072207

0 commit comments

Comments
 (0)