connect_after_close.phpt 545 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Reopen connection after it was closed
  3. --EXTENSIONS--
  4. pgsql
  5. --SKIPIF--
  6. <?php include("skipif.inc"); ?>
  7. --FILE--
  8. <?php
  9. include('config.inc');
  10. /* Run me under valgrind */
  11. $db1 = pg_connect($conn_str);
  12. unset($db1);
  13. var_dump(pg_close());
  14. $db2 = pg_connect($conn_str);
  15. unset($db2);
  16. var_dump(pg_close());
  17. ?>
  18. --EXPECTF--
  19. Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
  20. bool(true)
  21. Deprecated: pg_close(): Automatic fetching of PostgreSQL connection is deprecated in %s on line %d
  22. bool(true)