diff options
| author | Sara Golemon <pollita@php.net> | 2017-10-23 14:41:44 -0400 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2017-10-23 14:44:00 -0400 |
| commit | a645af44561acb4696bc9b98a656781ded81fb79 (patch) | |
| tree | 80a910217b1143e83f3e385ddd85d36db30ba1a0 /ext/pgsql/tests | |
| parent | b2dfcb30eb7de65fbb0e86d5fc79419c8851c005 (diff) | |
| download | php-git-a645af44561acb4696bc9b98a656781ded81fb79.tar.gz | |
Bugfix#75419 Fix clearing of default link during pg_close()
Diffstat (limited to 'ext/pgsql/tests')
| -rw-r--r-- | ext/pgsql/tests/bug75419.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/pgsql/tests/bug75419.phpt b/ext/pgsql/tests/bug75419.phpt new file mode 100644 index 0000000000..09164f4221 --- /dev/null +++ b/ext/pgsql/tests/bug75419.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #75419 Default link leaked via pg_close() +--SKIPIF-- +<?php include("skipif.inc"); ?> +--FILE-- +<?php +include('config.inc'); + +$db1 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW); +$db2 = pg_connect($conn_str, PGSQL_CONNECT_FORCE_NEW); +pg_close($db1); +var_dump(pg_ping()); +--EXPECT-- +bool(true) |
