Skip to content

Commit

Permalink
Fix phpGH-12763: PGSQL pg_untrace(): Argument php#1 ($connection) mus…
Browse files Browse the repository at this point in the history
…t be of type resource or null, PgSql\Connection given.
  • Loading branch information
degtyaryov committed Nov 24, 2023
1 parent f35a22a commit 630d766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ PHP_FUNCTION(pg_untrace)
PGconn *pgsql;
pgsql_link_handle *link;

if (zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &pgsql_link) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &pgsql_link, pgsql_link_ce) == FAILURE) {
RETURN_THROWS();
}

Expand Down

0 comments on commit 630d766

Please sign in to comment.