1--TEST--
2Reopen connection after it was closed
3--EXTENSIONS--
4pgsql
5--SKIPIF--
6<?php include("skipif.inc"); ?>
7--FILE--
8<?php
9include('config.inc');
10
11/* Run me under valgrind */
12$db1 = pg_connect($conn_str);
13unset($db1);
14var_dump(pg_close());
15
16$db2 = pg_connect($conn_str);
17unset($db2);
18var_dump(pg_close());
19?>
20--EXPECTF--
21Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
22bool(true)
23
24Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
25bool(true)
26