1--TEST-- 2GH-13519 - PGSQL_CONNECT_FORCE_NEW with persistent connections. 3--EXTENSIONS-- 4pgsql 5--SKIPIF-- 6<?php include("inc/skipif.inc"); ?> 7--FILE-- 8<?php 9include 'inc/config.inc'; 10 11$db1 = pg_pconnect($conn_str); 12$pid1 = pg_get_pid($db1); 13for ($i = 0; $i < 3; $i ++) { 14 $db2 = pg_pconnect($conn_str); 15 var_dump($pid1 === pg_get_pid($db2)); 16} 17for ($i = 0; $i < 3; $i ++) { 18 $db2 = pg_pconnect($conn_str, PGSQL_CONNECT_FORCE_NEW); 19 var_dump($pid1 === pg_get_pid($db2)); 20 pg_close($db2); 21} 22pg_close($db1); 23?> 24--EXPECT-- 25bool(true) 26bool(true) 27bool(true) 28bool(false) 29bool(false) 30bool(false) 31