Fix phpGH-12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given.

This commit is contained in:
ddv 2023-11-24 14:39:07 +05:00 committed by David Carlier
parent 7e7817bc2f
commit 3f57bd80f6
3 changed files with 27 additions and 1 deletions

View file

@ -2286,7 +2286,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();
}