xref: /PHP-8.2/ext/pgsql/tests/bug75419.phpt (revision 1f427779)
1--TEST--
2Bug #75419 Default link leaked via pg_close()
3--EXTENSIONS--
4pgsql
5--SKIPIF--
6<?php include("skipif.inc"); ?>
7--FILE--
8<?php
9include('config.inc');
10
11$db1 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
12$db2 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
13pg_close($db1);
14var_dump(pg_ping());
15?>
16--EXPECTF--
17Deprecated: pg_ping(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
18bool(true)
19