Skip to content

Commit 63e37df

Browse files
committed
Fix phpGH-12763: PGSQL pg_untrace(): Argument php#1 ($connection) must be of type resource or null, PgSql\Connection given.
1 parent 28110f8 commit 63e37df

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
@@ -2286,7 +2286,7 @@ PHP_FUNCTION(pg_untrace)
22862286
PGconn *pgsql;
22872287
pgsql_link_handle *link;
22882288

2289-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &pgsql_link) == FAILURE) {
2289+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pgsql_link, pgsql_link_ce) == FAILURE) {
22902290
RETURN_THROWS();
22912291
}
22922292

0 commit comments

Comments
 (0)