diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 10:39:02 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 10:39:02 +0200 |
| commit | f3dd39ef617522d594a2b934f4ca63ff5b343128 (patch) | |
| tree | 9939a823543490fb40ae65edf597a98bd2483311 /ext/pgsql/tests | |
| parent | d374920e5e020e0b3107fbcdcc3f96b00e053317 (diff) | |
| parent | d50dcbe659e6d5cbe1a7516957431b299e45465c (diff) | |
| download | php-git-f3dd39ef617522d594a2b934f4ca63ff5b343128.tar.gz | |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/pgsql/tests')
| -rw-r--r-- | ext/pgsql/tests/close_default_link.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/pgsql/tests/close_default_link.phpt b/ext/pgsql/tests/close_default_link.phpt new file mode 100644 index 0000000000..c73aa5460b --- /dev/null +++ b/ext/pgsql/tests/close_default_link.phpt @@ -0,0 +1,15 @@ +--TEST-- +pg_close() default link after connection variable has been dropped +--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()); +?> +--EXPECT-- +bool(true) |
