connection_reuse.phpt 325 B

12345678910111213141516171819
  1. --TEST--
  2. Reusing connection with same connection string
  3. --EXTENSIONS--
  4. pgsql
  5. --SKIPIF--
  6. <?php include("skipif.inc"); ?>
  7. --FILE--
  8. <?php
  9. include('config.inc');
  10. $db1 = pg_connect($conn_str);
  11. $db2 = pg_connect($conn_str);
  12. var_dump($db1, $db2);
  13. ?>
  14. --EXPECT--
  15. object(PgSql\Connection)#1 (0) {
  16. }
  17. object(PgSql\Connection)#1 (0) {
  18. }