1--TEST--
2pg_close() default link after connection variable has been dropped
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--EXPECTF--
17Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
18bool(true)
19