mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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:
parent
7e7817bc2f
commit
3f57bd80f6
3 changed files with 27 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue