--- /dev/null
+--TEST--
+PostgreSQL version
+--SKIPIF--
+<?php include("skipif.inc"); ?>
+--FILE--
+<?php
+// Get postgresql version for easier debugging.
+// Execute run-test.php with --keep-all to get version string in 00version.log or 00version.out
+include('config.inc');
+
+$db = pg_connect($conn_str);
+var_dump(pg_version($db));
+pg_close($db);
+
+echo "OK";
+?>
+--EXPECTF--
+array(3) {
+ ["client"]=>
+ string(%d) "%s"
+ ["protocol"]=>
+ int(%d)
+ ["server"]=>
+ string(%d) "%s"
+}
+OK
--TEST--
-PostgreSQL pg_update() (9.0)
+PostgreSQL pg_update() (9.0+)
--SKIPIF--
<?php
include("skipif.inc");
--TEST--
-Bug #14383 (using postgres with DBA causes DBA not to be able to find any keys)
+Bug #14383 (8.0+) (using postgres with DBA causes DBA not to be able to find any keys)
--SKIPIF--
<?php
require_once(dirname(__FILE__).'/../../dba/tests/skipif.inc');
--TEST--
-Bug #24499 (Notice: Undefined property: stdClass::)
+Bug #24499 (8.0+) (Notice: Undefined property: stdClass::)
--SKIPIF--
<?php
require_once('skipif.inc');
--TEST--
-Bug #32223 (weird behaviour of pg_last_notice)
+Bug #32223 (8.0+) (weird behaviour of pg_last_notice)
--SKIPIF--
<?php
require_once('skipif.inc');
--TEST--
-Bug #32223 (weird behaviour of pg_last_notice using define)
+Bug #32223 (8.0+) (weird behaviour of pg_last_notice using define)
--SKIPIF--
<?php
require_once('skipif.inc');
--TEST--
-Bug #36625 (pg_trace() does not work)
+Bug #36625 (8.0+) (pg_trace() does not work)
--SKIPIF--
<?php
require_once('skipif.inc');
--TEST--
-Bug #39971 (pg_insert/pg_update do not allow now() to be used for timestamp fields)
+Bug #39971 (8.0+) (pg_insert/pg_update do not allow now() to be used for timestamp fields)
--SKIPIF--
<?php
require_once('skipif.inc');
--TEST--
-Bug #42783 (pg_insert() does not support an empty value array)
+Bug #42783 (8.0+) (pg_insert() does not support an empty value array)
--SKIPIF--
<?php
require_once('skipif.inc');