mirror of
https://github.com/php/php-src.git
synced 2026-04-01 13:12:16 +02:00
23 lines
345 B
PHP
23 lines
345 B
PHP
--TEST--
|
|
Reopen connection after it was closed
|
|
--EXTENSIONS--
|
|
pgsql
|
|
--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)
|