summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/connect_after_close.phpt
blob: 65f954570b08e940698811b1de42a16c1c60ecb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Reopen connection after it was closed
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include('config.inc');

/* Run me under valgrind */
$db1 = pg_connect($conn_str);
unset($db1);
var_dump(pg_close());
$db2 = pg_connect($conn_str);
unset($db2);
var_dump(pg_close());
?>
--EXPECT--
bool(true)
bool(true)