mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix phpGH-12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user