[php-src] Issue #12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given
| From: | degtyaryov | Date: | Fri, 24 Nov 2023 09:51:57 +0000 |
| Subject: | [php-src] Issue #12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245882@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12763
Author: degtyaryov
### Description
The following code:
```php
<?php
$db = pg_connect("host=localhost dbname=postgres port=5432 user=postgres");
pg_untrace($db);
```
Resulted in this output:
```
Fatal error: Uncaught TypeError: pg_untrace(): Argument #1 ($connection) must be of type resource or
null, PgSql\Connection given in pg_untrace_test.php:4
Stack trace:
#0 pg_untrace_test.php(4): pg_untrace(Object(PgSql\Connection))
#1 {main}
thrown in pg_untrace_test.php on line 4
```
But I expected this output instead:
```
```
### PHP Version
PHP 8.3
### Operating System
_No response_