xref: /php-src/ext/pgsql/tests/bug75419.phpt (revision c15988aa)
1--TEST--
2Bug #75419 Default link leaked via pg_close()
3--EXTENSIONS--
4pgsql
5--SKIPIF--
6<?php include("inc/skipif.inc"); ?>
7--FILE--
8<?php
9include('inc/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