xref: /PHP-8.0/ext/pgsql/tests/bug75419.phpt (revision 7aacc705)
1--TEST--
2Bug #75419 Default link leaked via pg_close()
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7include('config.inc');
8
9$db1 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
10$db2 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW);
11pg_close($db1);
12var_dump(pg_ping());
13?>
14--EXPECT--
15bool(true)
16