Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
degtyaryov opened this issue Nov 24, 2023 · 0 comments

Comments

@degtyaryov
Copy link
Contributor

Description

The following code:

<?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

degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 24, 2023
…t be of type resource or null, PgSql\Connection given.
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 24, 2023
…t be of type resource or null, PgSql\Connection given.

Add test bugGH12763.phpt
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 24, 2023
…t be of type resource or null, PgSql\Connection given.

Expanded test bugGH12763.phpt
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 27, 2023
…t be of type resource or null, PgSql\Connection given.

Expanded test bugGH12763.phpt
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 27, 2023
…t be of type resource or null, PgSql\Connection given.
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 27, 2023
…t be of type resource or null, PgSql\Connection given.

Add test bugGH12763.phpt
degtyaryov added a commit to degtyaryov/php-src that referenced this issue Nov 27, 2023
…t be of type resource or null, PgSql\Connection given.

Rename test to gh12763.phpt. Add new line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant