diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 12:23:01 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 12:23:01 +0200 |
| commit | 2191eac3b3c4b393235e126e84aac9eaae230c2d (patch) | |
| tree | ea88364b875f8e005dfaf99a0868d9cb258b29e9 /ext/pgsql/tests | |
| parent | 231fecee273fe8a2f0570cf58b18fa149a9cd0fa (diff) | |
| parent | 6615b9c287963730fcc6fdf0f49d2597154e40f9 (diff) | |
| download | php-git-2191eac3b3c4b393235e126e84aac9eaae230c2d.tar.gz | |
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'ext/pgsql/tests')
| -rw-r--r-- | ext/pgsql/tests/connect_after_close.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/pgsql/tests/connect_after_close.phpt b/ext/pgsql/tests/connect_after_close.phpt new file mode 100644 index 0000000000..65f954570b --- /dev/null +++ b/ext/pgsql/tests/connect_after_close.phpt @@ -0,0 +1,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) |
